tree: 259f67a041d3c2bca55be79c3e13b988ac255b71 [path history] [tgz]
  1. example.png
  2. example.py
  3. notebook.ipynb
  4. README.md
  5. requirements.txt
examples/narwhals/README.md

Narwhals

Narwhals is a library that aims to unify expression across dataframe libraries. It is meant to be lightweight and focuses on python first dataframe libraries.

This examples shows how you can write dataframe agnostic code and then load up a pandas or polars data to then use with it.

Running the example

You can run the example doing:

# cd examples/narwhals/
python example.py

This will run both variants one after the other.

or running the notebook:

# cd examples/narwhals
jupyter notebook   # pip install jupyter if you don't have it

Or you can open up the notebook in Colab:

Open In Colab