Pandas and NumPy have a lot of ways to configure array and dataframe string conversion. These are mostly global options, set with numpy.set_printoptions and pandas.set_option.
NumPy also provides numpy.array2string to perform a single array stringification operation with detailed configuration for that specific operation. This avoids messing with global options that other parts of a program may be relying on.
The closest thing I've found in Pandas is pandas.option_context, which temporarily modifies global options and restores them afterward. (NumPy has the similar numpy.printoptions context manager.) However, this still modifies global options, making it unsuitable for concurrent code, or library code that might be used in a concurrent program.
Is there any call to stringify a dataframe with custom display options, without even temporarily modifying global settings?