Skip to content

Commit 5b3eb17

Browse files
committed
simplify
1 parent 84543af commit 5b3eb17

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pandas/core/series.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -580,15 +580,8 @@ def __arrow_c_stream__(self, requested_schema=None):
580580
PyCapsule
581581
"""
582582
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)
590583
ca = pa.chunked_array([pa.Array.from_pandas(self, type=requested_schema)])
591-
return ca.__arrow_c_stream__()
584+
return ca.__arrow_c_stream__(requested_schema)
592585

593586
# ----------------------------------------------------------------------
594587

0 commit comments

Comments
 (0)