Conversion from/to pandas
Each Terality structure provides two methods that allow you to easily convert pandas objects into terality structures and conversely.
Using from_pandas
/ from_ndarray
methods, all the data will be retrieved in your RAM. If the object size is too important, you may run into a MemoryError.
DataFrame:
Series:
Index:
NDArray:
terality.NDArray
is meant to be used within pandas methods arguments, the numpy
API is not supported by terality. Only 1D arrays are currently implemented.
Using these methods, you can easily make roundtrips between pandas and Terality structures with small amounts of data.
Last updated