I have the following df:
df
Site Process parameter value unit
0 Mid Biomass plant cap-up 5000.00
1 Mid Biomass plant inv-cost 875000.00
2 Mid Biomass plant depreciation 25.00
3 Mid Coal plant cap-up 0.00
4 Mid Coal plant inv-cost 600000.00
5 Mid Coal plant depreciation 40.00
I would like to have a df for units something like following:
df_unit
unit
0 MW
1 €/MWh
2 a
and I would like to merge the df and df_unit together. Probably best way to do this with pandas join(), but I don't know how to use it. So can u help me to get the following df_merged from df and df_unit?
Following output is the expected outcome.
df_merged
Site Process parameter value unit
0 Mid Biomass plant cap-up 5000.00 MW
1 Mid Biomass plant inv-cost 875000.00 €/MWh
2 Mid Biomass plant depreciation 25.00 a
3 Mid Coal plant cap-up 0.00 MW
4 Mid Coal plant inv-cost 600000.00 €/MWh
5 Mid Coal plant depreciation 40.00 a