narwhals.dependencies
get_pandas()
Get pandas module (if already imported - else return None).
get_polars()
Get Polars module (if already imported - else return None).
get_modin()
Get modin.pandas module (if already imported - else return None).
get_cudf()
Get cudf module (if already imported - else return None).
get_pyarrow()
Get pyarrow module (if already imported - else return None).
is_pandas_dataframe(df)
Check whether df
is a pandas DataFrame without importing pandas.