Compatibility with pandas

Import the LArray library:


In [ ]:
from larray import *

To convert an Array object into a pandas DataFrame, the method to_frame() can be used:


In [ ]:
population = load_example_data('demography_eurostat').population
population

In [ ]:
df = population.to_frame()
df

Inversely, to convert a DataFrame into an Array object, use the function asarray():


In [ ]:
population = asarray(df)
population