pyspark.pandas.option_context#
- pyspark.pandas.option_context(*args)[source]#
- Context manager to temporarily set options in the with statement context. - You need to invoke - option_context(pat, val, [(pat, val), ...]).- Examples - >>> with option_context('display.max_rows', 10, 'compute.max_rows', 5): ... print(get_option('display.max_rows'), get_option('compute.max_rows')) 10 5 >>> print(get_option('display.max_rows'), get_option('compute.max_rows')) 1000 1000