Reputation: 4248
I'm getting a bit tired of running pd.options.display.max_columns = some_large_number
for every new session.
Is there a way to save my preferences permanently?
Upvotes: 3
Views: 420
Reputation: 2256
According to panda's documentation, you can create a startup file.
You can find examples on how to set up these startup files here (python) and here (ipython).
Basically make your startup.py
like:
import pandas as pd
pd.set_option('display.max_columns', some_large_number)
And put it in ipython's profile_default
or link it with the PYTHONSTARTUP
variable for regular python.
Upvotes: 4