-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Implement dplyr::glimpse() in pandas #51668
Comments
take |
Hi, thanks for your report. Please wait for consensus before submitting a pr |
Will do. For reference, the code is (mostly) available in |
I think this would be a great feature for |
Plus one. Originally opened the issue in the siuba repo. Would be great to see this added here. |
Just a general comment: It's not only about the feature, we have to be comfortable maintaining it as well (long-term speaking) |
Fully understand. Regarding this, it has been designed with an architecture that is 1-to-1 with the |
Isnt't this the same of doing |
Would that not only print the first 5 columns? Also, this would print/show all the data? |
@phofl has any discussion happened regarding this feature ? |
Late to the show here @Holer90 but I have written a |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
Pandas is missing a quick and easy way to get an overview of multi-column data. Fortunate, the
R
-community has found a solution:dplyr::glimpse()
. Link to dplyr.Example:
Feature Description
I have implemented the
glimpse()
function based on theinfo()
function for bothDataFrame
andSeries
. I have also slightly extended the functionality to include the following options:An example of the extended functionality:
Alternative Solutions
The functionality could be implemented in a separate package and monkey-patched into
pandas
, but this solution would not make the function easily accessible to the vast majority of people usingpandas
.Additional Context
I will provide a pull request implementing this functionality shortly.
In
siuba
, which is adplyr
implementation in python, there is an open issue to Support glimpse function, which shows the desire for this functionality in the python/pandas community.Edit: The
glimpse
function is also implemented in polars, which also highlights the desire for this functionality.The text was updated successfully, but these errors were encountered: