Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Mar 13, 2024
1 parent 377af3c commit e3437d4
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ class DataFrame:
Notes
-----
Some methods internally convert the DataFrame into a LazyFrame before collecting
the results back into a DataFrame. This can lead to unexpected behavior when using
a subclassed DataFrame. For example,
Polars explicitly does not support subclassing of its core data types. See
the following GitHub issue for possible workarounds:
https://github.com/pola-rs/polars/issues/2846#issuecomment-1711799869
Examples
--------
Expand Down Expand Up @@ -349,17 +349,6 @@ class DataFrame:
│ 1 ┆ 2 ┆ 3 │
│ 4 ┆ 5 ┆ 6 │
└─────┴─────┴─────┘
Notes
-----
Some methods internally convert the DataFrame into a LazyFrame before collecting
the results back into a DataFrame. This can lead to unexpected behavior when using
a subclassed DataFrame. For example,
>>> class MyDataFrame(pl.DataFrame):
... pass
>>> isinstance(MyDataFrame().lazy().collect(), MyDataFrame)
False
"""

_df: PyDataFrame
Expand Down

0 comments on commit e3437d4

Please sign in to comment.