Add optional column separator character to DataFrame.to_string() #30105
Labels
Duplicate Report
Duplicate issue or pull request
Output-Formatting
__repr__ of pandas objects, to_string
I'd like more flexibility in the stringification of a pandas dataframe. Consider a trivial dataframe:
This outputs:
My desired output is:
I suggest adding the following options to
to_string()
to support the above output:output_column_separator
-- The vertical bar in the above exampleoutput_row_separator
-- The hyphen in the above exampleoutput_cross_separator
-- The plus sign in the above exampleThe text was updated successfully, but these errors were encountered: