microsoft / datamations

https://microsoft.github.io/datamations/
Other
66 stars 14 forks source link

Two-variable grouping in Python #121

Closed jhofman closed 2 years ago

jhofman commented 2 years ago

Python handles one-variable grouping at the moment.

Let's extend that to two variables and then write a test case for it, as in the second example in the main README.

@sharlagelfand, can you show @chisingh how to get the specs out of that example?

sharlagelfand commented 2 years ago

Here's how you can get the specs:

example_specs <- "small_salary %>%
  group_by(Degree, Work) %>% 
  summarize(mean = mean(Salary))" %>%
  datamation_sanddance()

example_specs$x$specs