Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 358 Bytes

pandas.rst

File metadata and controls

16 lines (10 loc) · 358 Bytes

Compatibility with pandas

To convert a LArray object into a pandas DataFrame, the method :py~LArray.to_frame can be used:

python

df = pop.to_frame() df

Inversely, to convert a DataFrame into a LArray object, use the function :pyaslarray:

python

pop = aslarray(df) pop