We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84543af commit 5b3eb17Copy full SHA for 5b3eb17
pandas/core/series.py
@@ -580,15 +580,8 @@ def __arrow_c_stream__(self, requested_schema=None):
580
PyCapsule
581
"""
582
pa = import_optional_dependency("pyarrow", min_version="16.0.0")
583
- if requested_schema is not None:
584
- # todo: how should this be supported?
585
- msg = (
586
- "Passing `requested_schema` to `Series.__arrow_c_stream__` is not yet "
587
- "supported"
588
- )
589
- raise NotImplementedError(msg)
590
ca = pa.chunked_array([pa.Array.from_pandas(self, type=requested_schema)])
591
- return ca.__arrow_c_stream__()
+ return ca.__arrow_c_stream__(requested_schema)
592
593
# ----------------------------------------------------------------------
594
0 commit comments