Open
Description
Feature Type
-
Adding new functionality to pandas
-
Changing existing functionality in pandas
-
Removing existing functionality in pandas
Problem Description
Reviewing Arrow docs link from @WillAyd, spotted this
https://arrow.apache.org/docs/format/CanonicalExtensions.html#variable-shape-tensor
Tensor is exactly what I'm talking about in Additional Context [1] and would enable Pandas users to have a column datatype for big blocks of some underlying type
Feature Description
Support Arrow Tensor in Pandas
Python
https://arrow.apache.org/docs/python/generated/pyarrow.Tensor.html#pyarrow.Tensor
Alternative Solutions
just make everything an "object":
>>> import numpy as np
>>> import pandas as pd
>>> x = {'hello': 'world'}
>>> y = np.ones(3)
>>> df = pd.DataFrame({'X': [x], 'Y': [y]})
>>> df
X Y
0 {'hello': 'world'} [1.0, 1.0, 1.0]
>>> df.dtypes
X object
Y object
dtype: object
Additional Context
[1] #58455 (comment) onward