Skip to content

Commit

Permalink
remove stable api docstring test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jan 11, 2025
1 parent a8e5003 commit 5dab775
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 15,529 deletions.
3,193 changes: 0 additions & 3,193 deletions narwhals/dataframe.py

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions narwhals/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,22 +263,6 @@ def is_into_series(native_series: IntoSeries) -> bool:
Returns:
`True` if `native_series` can be converted to a Narwhals Series, `False` otherwise.
Examples:
>>> import pandas as pd
>>> import polars as pl
>>> import numpy as np
>>> import narwhals as nw
>>> s_pd = pd.Series([1, 2, 3])
>>> s_pl = pl.Series([1, 2, 3])
>>> np_arr = np.array([1, 2, 3])
>>> nw.dependencies.is_into_series(s_pd)
True
>>> nw.dependencies.is_into_series(s_pl)
True
>>> nw.dependencies.is_into_series(np_arr)
False
"""
from narwhals.series import Series

Expand All @@ -300,22 +284,6 @@ def is_into_dataframe(native_dataframe: Any) -> bool:
Returns:
`True` if `native_dataframe` can be converted to a Narwhals DataFrame, `False` otherwise.
Examples:
>>> import pandas as pd
>>> import polars as pl
>>> import numpy as np
>>> from narwhals.dependencies import is_into_dataframe
>>> df_pd = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
>>> df_pl = pl.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
>>> np_arr = np.array([[1, 4], [2, 5], [3, 6]])
>>> is_into_dataframe(df_pd)
True
>>> is_into_dataframe(df_pl)
True
>>> is_into_dataframe(np_arr)
False
"""
from narwhals.dataframe import DataFrame

Expand Down
Loading

0 comments on commit 5dab775

Please sign in to comment.