Skip to content

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented Oct 28, 2021

This PR gives flexibility if we want the series string output to be like the Series repr, but with some adjustments.

So with this PR we we can now do:

>>> params = pd.io.formats.format.get_series_repr_params(ser)
>>> params[my_param] = new_value
>>> ser.to_string(**params)

Followup to #43987.

@jreback jreback added the Refactor Internal refactoring of code label Oct 28, 2021
@jreback jreback added this to the 1.4 milestone Oct 28, 2021
@jreback jreback merged commit c952eb2 into pandas-dev:master Oct 28, 2021
@jreback
Copy link
Contributor

jreback commented Oct 28, 2021

thanks @topper-123

@topper-123 topper-123 deleted the flexible_series._repr branch October 28, 2021 13:55
@topper-123 topper-123 added the Output-Formatting __repr__ of pandas objects, to_string label Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output-Formatting __repr__ of pandas objects, to_string Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants