nbdev-pandas

raw JSON →
0.0.2389 verified Fri May 01 auth: no python

nbdev-pandas provides documentation lookup utilities for pandas within nbdev's literate programming environment. Current version is 0.0.2389, with an unknown release cadence.

pip install nbdev-pandas
error ImportError: cannot import name 'show_doc' from 'nbdev-pandas'
cause Using hyphen in import instead of underscore.
fix
Change to from nbdev_pandas import show_doc.
error ModuleNotFoundError: No module named 'nbdev_pandas'
cause Package not installed.
fix
Run pip install nbdev-pandas.
gotcha The package name uses a hyphen (nbdev-pandas) but the import name uses an underscore (nbdev_pandas).
fix Use `import nbdev_pandas` or `from nbdev_pandas import ...`.
gotcha Version numbers are arbitrary; 0.0.2389 suggests rapid iteration and no stable release.
fix Pin exact version in requirements or use `nbdev_pandas>=0.0`.

Display the documentation for pandas function sort_values.

from nbdev_pandas import show_doc
import pandas as pd
show_doc(pd.DataFrame.sort_values)