Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions narwhals/_interchange/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def dtype(self: Self) -> DType:
self._native_series.dtype, version=self._version
)

@property
def native(self) -> Any:
return self._native_series

def __getattr__(self: Self, attr: str) -> NoReturn:
msg = ( # pragma: no cover
f"Attribute {attr} is not supported for metadata-only dataframes.\n\n"
Expand Down
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def select(self: PandasLikeDataFrame, *exprs: PandasLikeExpr) -> PandasLikeDataF
)
new_series = align_series_full_broadcast(*new_series)
df = horizontal_concat(
[s._native_series for s in new_series],
[s.native for s in new_series],
implementation=self._implementation,
backend_version=self._backend_version,
)
Expand Down
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def func(df: PandasLikeDataFrame) -> list[PandasLikeSeries]:
sep_array = init_value.from_iterable(
data=[separator] * len(init_value),
name="sep",
index=init_value._native_series.index,
index=init_value.native.index,
context=self,
)
separators = (sep_array.zip_with(~nm, "") for nm in null_mask[:-1])
Expand Down
Loading