ENH: A new method that will more efficiently display 'tall' df #42837
Labels
Enhancement
Needs Discussion
Requires discussion from core team before further action
Output-Formatting
__repr__ of pandas objects, to_string
Is your feature request related to a problem?
I wish there was a way to preserve verticle screen space when I'm inspecting 'tall' data frames. These are data frames with many observaitons but few columns. Thus, they're tall. I use the word tall to avoid conflating with long data.
Describe the solution you'd like
I believe this function accomplishes the goal:
API breaking implications
Not applicable and/or unsure.
Describe alternatives you've considered
So the above function works great. Try it out. Take a look over at this colab notebook that demonstrates:
https://colab.research.google.com/drive/1mcNLlG6RVbhoXGCMdVyUryxKSgcaRPNC?usp=sharing
But, I'd propose a new method. Something like
Pandas.DataFrame.inspect()
orPandas.DataFrame.insp()
- to compliment the.head()
-.sample()
- and.tail()
methods.Additional Context
Inspired by the first suggestion in this article:
https://towardsdatascience.com/pandas-hacks-that-i-wish-i-had-when-i-started-out-1f942caa9792
(See the first 'hack' of the three).
The text was updated successfully, but these errors were encountered: