Skip to content

Commit

Permalink
add isinstance functions to api reference
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Aug 14, 2024
1 parent 54ba924 commit 57f9726
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/api-reference/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,24 @@
handler: python
options:
members:
- get_cudf
- get_modin
- get_pandas
- get_polars
- get_modin
- get_cudf
- get_pyarrow
- is_cudf_dataframe
- is_cudf_series
- is_dask_dataframe
- is_modin_dataframe
- is_modin_series
- is_numpy_array
- is_pandas_dataframe
- is_pandas_dataframe
- is_pandas_series
- is_polars_dataframe
- is_polars_lazyframe
- is_polars_series
- is_pyarrow_chunked_array
- is_pyarrow_table
show_source: false
show_bases: false
12 changes: 12 additions & 0 deletions narwhals/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,16 @@ def is_numpy_array(arr: Any) -> TypeGuard[np.ndarray]:
"get_pyarrow",
"get_numpy",
"is_pandas_dataframe",
"is_pandas_series",
"is_polars_dataframe",
"is_polars_lazyframe",
"is_polars_series",
"is_modin_dataframe",
"is_modin_series",
"is_cudf_dataframe",
"is_cudf_series",
"is_pyarrow_table",
"is_pyarrow_chunked_array",
"is_numpy_array",
"is_dask_dataframe",
]

0 comments on commit 57f9726

Please sign in to comment.