-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support glimpse function #409
Comments
Agreed it would be nice! As I understand, glimpse (which is implemented in the pillar package) basically does the following:
ExamplesChoosing n elements to show per columnglimpse(
data.frame(
x = c(paste0(rep("abc", 10), collapse = ""), rep("zzz", 9)),
y = 1:10
)
) Different from straight transposingTransposing a dataframe doesn't dynamically select number of columns (and jacks up the object representations; e.g. ints go to floats, etc..): from siuba.data import mtcars
mtcars.head().T (Note how this also jacks up representations) Handles nested representations via a summaryTo see how it handles each column: nested = mtcars %>% nest(data = c(-cyl))
pillar:::format_glimpse_1(nested$data)
# [1] "[<tbl_df[7 x 10]>], [<tbl_df[11 x 10]>], [<tbl_df[14 x 10]>]" |
This is cool. Also want to implement it with datar. |
* 🩹 Attach original `__module__` to `func_factory` registed functions * ✨ Allow configuration file to save default options; 💥Replace option `warn_builtin_names` with `imiport_names_conflict` (#73) * 🐛 Register `base.factor()` and accept grouped data (#108) * ✨ Support `base.glimpse()` (#107, machow/siuba#409) * ✅ Add tests for `base.factor()` with grouped data * 🔖 0.8.0 * 📝 Update CHANGELOG
I have implemented the glimpse function in |
Would be great to have dplyr's glimpse function implemented in siuba and loaded in with
from siuba import *
.glimpse
is really useful because pandas dataframes don't always print nicely.The text was updated successfully, but these errors were encountered: