Here’s how to make df.group_by always available in IPython or Jupyter. 1. Find your IPython startup folder Run this once in a terminal / notebook: ``` ipython profile locate default ``` You’ll see a path like: `~/.ipython/profile_default/` 2. Create a startup script Inside that folder, make a directory startup (if it doesn’t exist). Then create a file, e.g. 00-pandas-aliases.py. ``` ~/.ipython/profile_default/startup/00-pandas-aliases.py ``` 3. Put this in the file: ```Python import pandas as pd pd.DataFrame.group_by = pd.DataFrame.groupby ``` 4. Restart IPython / Jupyter. Now every session will have both: ```python df.groupby("A") df.group_by("A") ```