Skip to content

Commit

Permalink
bug: integer type casting is harder, revert 47d6a35
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanoved committed Aug 16, 2024
1 parent 08e689a commit 72327b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions narwhals/_pandas_like/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ def __call__(self, df: PandasLikeDataFrame) -> list[PandasLikeSeries]:
plx, self._otherwise_value, shape=condition.shape
)._call(df)[0]

return [
value_series.zip_with(condition, otherwise_series).cast(value_series.dtype)
]
return [value_series.zip_with(condition, otherwise_series)]

def then(self, value: PandasLikeExpr | PandasLikeSeries | Any) -> PandasThen:
self._then_value = value
Expand Down

0 comments on commit 72327b6

Please sign in to comment.