How to display, search and sort with itables¶
Using itables to display and sort your data makes life easy. All you need to do is run itables.show
and feed it your dataframe!
A fun bonus compared to other similar libraries is the Search functionality.
In [1]:
Copied!
import pandas as pd
import itables
df = pd.read_csv("countries.csv")
itables.show(df)
import pandas as pd
import itables
df = pd.read_csv("countries.csv")
itables.show(df)
Country | Continent | GDP_per_capita | life_expectancy | Population |
---|---|---|---|---|
Loading... (need help?) |
Automatically display the interactive table¶
Instead of using .show(df)
like you do with every single other library, itables allows you to make it activate automatically!
In [2]:
Copied!
from itables import init_notebook_mode
init_notebook_mode(all_interactive=True)
from itables import init_notebook_mode
init_notebook_mode(all_interactive=True)
Now every time you look at a dataframe it will be an interactive table.
In [ ]:
Copied!