with pd.option_context('display.max_rows', None, 'display.max_columns', None): # more options can be specified also print(df)
pd.set_option("display.max_rows", None, "display.max_columns", None)