def format_pandas(opts=pandas_options): try: import pandas as pd for key, val in opts.items(): pd.set_option(key, val) except ImportError: return