Skip to content

Commit

Permalink
Remove hax
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Petersohn <[email protected]>
  • Loading branch information
sfc-gh-dpetersohn committed Jul 18, 2024
1 parent 0019245 commit 5800e3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modin/polars/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,11 @@ def item(self, row: int | None = None, column: str | int | None = None) -> Any:
column = 0
if isinstance(column, str):
column = self.columns.index(column)
return self.to_pandas().iloc[row, column]
return (

Check warning on line 707 in modin/polars/dataframe.py

View check run for this annotation

Codecov / codecov/patch

modin/polars/dataframe.py#L701-L707

Added lines #L701 - L707 were not covered by tests
self._query_compiler.take_2d_labels(row, column)
.to_pandas()
.squeeze(axis=None)
)

def iter_columns(self) -> Iterator["Series"]:
"""
Expand Down

0 comments on commit 5800e3e

Please sign in to comment.