suddenly, a wild version_2 appears
This commit is contained in:
parent
41897ef5e9
commit
e01be2e9ce
2 changed files with 448 additions and 8 deletions
|
|
@ -33,7 +33,7 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"data = pd.read_excel(\"1. Oil production_1900-2023.xlsx\", sheet_name=\"Latin America (TWh)\", header=2)\n",
|
"data = pd.read_excel(\"version_1/input/1. Oil production_1900-2023.xlsx\", sheet_name=\"Latin America (TWh)\", header=2)\n",
|
||||||
"data.rename(columns={'Unnamed: 0': 'year'}, inplace=True)"
|
"data.rename(columns={'Unnamed: 0': 'year'}, inplace=True)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
"ax.set_title(\"Latin American oil production in terawatt hours by country (all countries)\")\n",
|
"ax.set_title(\"Latin American oil production in terawatt hours by country (all countries)\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.legend(loc=\"upper left\")\n",
|
"plt.legend(loc=\"upper left\")\n",
|
||||||
"plt.savefig(\"twh_year_all.png\")"
|
"plt.savefig(\"version_1/output/twh_year_all.png\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
"ax.set_title(\"Latin American oil production in terawatt hours by country (lower tercile)\")\n",
|
"ax.set_title(\"Latin American oil production in terawatt hours by country (lower tercile)\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.legend(loc=\"upper left\")\n",
|
"plt.legend(loc=\"upper left\")\n",
|
||||||
"plt.savefig(\"twh_year_low.png\")"
|
"plt.savefig(\"version_1/output/twh_year_low.png\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
"ax.set_title(\"Latin American oil production in terawatt hours by country (median tercile)\")\n",
|
"ax.set_title(\"Latin American oil production in terawatt hours by country (median tercile)\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.legend(loc=\"upper left\")\n",
|
"plt.legend(loc=\"upper left\")\n",
|
||||||
"plt.savefig(\"twh_year_middle.png\")"
|
"plt.savefig(\"version_1/output/twh_year_middle.png\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
"ax.set_title(\"Latin American oil production in terawatt hours by country (higher tercile)\")\n",
|
"ax.set_title(\"Latin American oil production in terawatt hours by country (higher tercile)\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.legend(loc=\"upper left\")\n",
|
"plt.legend(loc=\"upper left\")\n",
|
||||||
"plt.savefig(\"twh_year_high.png\")"
|
"plt.savefig(\"version_1/output/twh_year_high.png\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -192,7 +192,7 @@
|
||||||
"ax.set_title(\"Latin America's share of the world oil production\")\n",
|
"ax.set_title(\"Latin America's share of the world oil production\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.legend(loc=\"upper center\")\n",
|
"plt.legend(loc=\"upper center\")\n",
|
||||||
"plt.savefig(\"world_percentage.png\")"
|
"plt.savefig(\"version_1/output/world_percentage.png\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -210,7 +210,7 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"trade = pd.read_excel(\"5. Energy trade_1971-2015.xlsx\", sheet_name=\"LA, Energy trade, 1971-2015\", header=1)\n",
|
"trade = pd.read_excel(\"version_1/input/5. Energy trade_1971-2015.xlsx\", sheet_name=\"LA, Energy trade, 1971-2015\", header=1)\n",
|
||||||
"trade.rename(columns={'Unnamed: 0': 'year', \"Unnamed: 1\": \"trade\"}, inplace=True)\n",
|
"trade.rename(columns={'Unnamed: 0': 'year', \"Unnamed: 1\": \"trade\"}, inplace=True)\n",
|
||||||
"trade[\"percentage\"] = trade[\"trade\"].astype(float).abs().round(2)\n",
|
"trade[\"percentage\"] = trade[\"trade\"].astype(float).abs().round(2)\n",
|
||||||
"trade.loc[44, \"percentage\"] = -6.61"
|
"trade.loc[44, \"percentage\"] = -6.61"
|
||||||
|
|
@ -238,7 +238,7 @@
|
||||||
"ax.set_title(\"Energy trade in Latin America, as percentage of use, 1971-2015\")\n",
|
"ax.set_title(\"Energy trade in Latin America, as percentage of use, 1971-2015\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.legend(loc=\"upper center\")\n",
|
"plt.legend(loc=\"upper center\")\n",
|
||||||
"plt.savefig(\"trade_balance.png\")"
|
"plt.savefig(\"version_1/output/trade_balance.png\")"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
440
anthroposouth_visuals_version_2.ipynb
Normal file
440
anthroposouth_visuals_version_2.ipynb
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue