@@ -695,9 +695,6 @@ def parse_version(version: str | ModuleType | _SupportsVersion) -> tuple[int, ..
695695
696696 Arguments:
697697 version: Version string, or object with one, to parse.
698-
699- Returns:
700- Parsed version number.
701698 """
702699 # lifted from Polars
703700 # [marco]: Take care of DuckDB pre-releases which end with e.g. `-dev4108`
@@ -779,9 +776,6 @@ def maybe_align_index(
779776 lhs: Dataframe or Series.
780777 rhs: Dataframe or Series to align with.
781778
782- Returns:
783- Same type as input.
784-
785779 Notes:
786780 This is only really intended for backwards-compatibility purposes,
787781 for example if your library already aligns indices for users.
@@ -871,9 +865,6 @@ def maybe_get_index(obj: DataFrame[Any] | LazyFrame[Any] | Series[Any]) -> Any |
871865 Arguments:
872866 obj: Dataframe or Series.
873867
874- Returns:
875- Same type as input.
876-
877868 Notes:
878869 This is only really intended for backwards-compatibility purposes,
879870 for example if your library already aligns indices for users.
@@ -918,9 +909,6 @@ def maybe_set_index(
918909 `ValueError` is raised.
919910 index: series or list of series to set as index.
920911
921- Returns:
922- Same type as input.
923-
924912 Raises:
925913 ValueError: If one of the following conditions happens
926914
@@ -996,9 +984,6 @@ def maybe_reset_index(obj: FrameOrSeriesT) -> FrameOrSeriesT:
996984 Arguments:
997985 obj: Dataframe or Series.
998986
999- Returns:
1000- Same type as input.
1001-
1002987 Notes:
1003988 This is only really intended for backwards-compatibility purposes,
1004989 for example if your library already resets the index for users.
@@ -1106,9 +1091,6 @@ def maybe_convert_dtypes(
11061091 *args: Additional arguments which gets passed through.
11071092 **kwargs: Additional arguments which gets passed through.
11081093
1109- Returns:
1110- Same type as input.
1111-
11121094 Notes:
11131095 For non-pandas-like inputs, this is a no-op.
11141096 Also, `args` and `kwargs` just get passed down to the underlying library as-is.
@@ -1146,9 +1128,6 @@ def scale_bytes(sz: int, unit: SizeUnit) -> int | float:
11461128 Arguments:
11471129 sz: original size in bytes
11481130 unit: size unit to convert into
1149-
1150- Returns:
1151- Integer or float.
11521131 """
11531132 if unit in {"b" , "bytes" }:
11541133 return sz
@@ -1182,9 +1161,6 @@ def is_ordered_categorical(series: Series[Any]) -> bool:
11821161 Arguments:
11831162 series: Input Series.
11841163
1185- Returns:
1186- Whether the Series is an ordered categorical.
1187-
11881164 Examples:
11891165 >>> import narwhals as nw
11901166 >>> import pandas as pd
@@ -1677,9 +1653,6 @@ def _into_arrow_table(data: IntoArrowTable, context: _LimitedContext, /) -> pa.T
16771653 Arguments:
16781654 data: Object which implements `__arrow_c_stream__`.
16791655 context: Initialized compliant object.
1680-
1681- Returns:
1682- A PyArrow Table.
16831656 """
16841657 if find_spec ("pyarrow" ):
16851658 ns = context ._version .namespace .from_backend ("pyarrow" ).compliant
0 commit comments