Description
Right now toPandas() returns DataFrameLike, which is an incomplete "view" of pandas DataFrame. Which leads to cases like mypy reporting that certain pandas methods are not present in DataFrameLike, even tho those methods are valid methods on pandas DataFrame, which is the actual type of the object. This requires type ignore comments or asserts.
Attachments
Issue Links
- is duplicated by
-
SPARK-34540 Add convert_dtypes to the DataFrameLike protocol
- Closed
- links to