We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We would like to convert sparse columns from Pandas to Arrow:
import numpy as np import pandas import pyarrow arr = pandas.Series([1, 2, 3]) sparr = pandas.SparseArray(np.array([1, 0, 0], dtype='int64')) df = pandas.DataFrame({'sparr': sparr, 'arr': arr}) table = pyarrow.table(df) df == table.to_pandas()
I assume pandas.SparseArray is a 1D sparse COO Tensor that would map to pyarrow.SparseTensorCOO.
pandas.SparseArray
pyarrow.SparseTensorCOO
Reporter: Rok Mihevc / @rok Watchers: Rok Mihevc / @rok
Note: This issue was originally created as ARROW-6327. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered:
Antoine Pitrou / @pitrou: Unfortunately a Arrow sparse tensor cannot be a Table column. Suggest closing.
Sorry, something went wrong.
No branches or pull requests
We would like to convert sparse columns from Pandas to Arrow:
I assume
pandas.SparseArray
is a 1D sparse COO Tensor that would map topyarrow.SparseTensorCOO
.Reporter: Rok Mihevc / @rok
Watchers: Rok Mihevc / @rok
Note: This issue was originally created as ARROW-6327. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: