jorisvandenbossche commented on code in PR #55792:
URL: https://github.com/apache/arrow/pull/55792#discussion_r4722147636
##########
python/pyarrow-stubs/__lib/array.pyi:
##########
@@ -117,7 +126,10 @@ class ArrayStatistics(_Weakrefable):
@property
def is_max_exact(self) -> bool | None: ...
-class _PandasConvertible(_Weakrefable):
+# to_pandas() arrays return Series, tables return DataFrame
+_PandasT = TypeVar("_PandasT", pd.Series[Any], pd.DataFrame)
Review Comment:
Is there a reason we are using `pd.Series[Any]` instead of `pd.Series`?
(from a typing perspective, is there actually a difference?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]