Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch: pandas-like and pyarrow scalar reduction fix #716

Merged
merged 10 commits into from
Aug 5, 2024
Prev Previous commit
Next Next commit
series item -> iloc
FBruzzesi committed Aug 5, 2024
commit bcdb7204b0d6ae8ed15ad5501df8cc2e901d989f
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/utils.py
Original file line number Diff line number Diff line change
@@ -430,7 +430,7 @@ def broadcast_series(series: list[PandasLikeSeries]) -> list[Any]:
if max_length > 1 and length == 1:
reindexed.append(
native_namespace.Series(
[s_native.item()] * max_length,
[s_native.iloc[0]] * max_length,
index=idx,
name=s_native.name,
dtype=s_native.dtype,