Skip to content

Instantly share code, notes, and snippets.

@fchevitarese
Created November 6, 2015 15:03
Show Gist options
  • Save fchevitarese/32d4482a3c4f2b4d3caa to your computer and use it in GitHub Desktop.
Save fchevitarese/32d4482a3c4f2b4d3caa to your computer and use it in GitHub Desktop.
import pandas as pd
df2 = pd.DataFrame(
{u"Paises":
[u"Áustria", u"Bélgica", "Dinamarca", "Finlandia", u"França", "Alemanha", u"Grécia", "Irlanda", u"Itália", "Holanda", "Portugal", "Espanha", u"Suécia"],
u"Carvão": [3.6, 3.2, 3.6, 3.2, 3.2, 3.2, 3.5, 3.2, 3.6, 3.2, 3.6, 3.6, 3.2],
"CCGas": [3.4, 2.8, 2.9, 2.6, 3.2, 3.5, 3.5, 3.2, 3.4, 2.6, 3.4, 3.5, 3.3],
"Bioenergia": [3.6, 3.7, 3.9, 3.9, 4.0, 4.3, 4.0, 4.5, 4.0, 4.0, 4.3, 4.3, 3.4]})
df2 = df2.set_index(['Paises'])
df2.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment