EinMaulwurf commented on issue #45601:
URL: https://github.com/apache/arrow/issues/45601#issuecomment-2908678489
Thanks, this solution fits much better to my workflow! Here's an example of
how I would now use it:
```r
col_kauf <- c(
"kaufpreis", "plz", "baujahr", "wohnflaeche", "zimmeranzahl",
"ajahr", "amonat", "ejahr", "emonat", "ergg_1km", "dupID_gen"
)
open_dataset("data.parquet") %>%
select(all_of(col_kauf)) %>%
mutate(
across(
c("kaufpreis", "baujahr", "wohnflaeche", "zimmeranzahl", "ajahr",
"amonat", "ejahr", "emonat", "dupID_gen"),
~cast(.x, int32())
),
across(
c("plz", "ergg_1km"),
~cast(.x, string())
)
) %>%
write_dataset("data_no_labels.parquet")
open_dataset("data_no_labels.parquet") %>%
filter(kaufpreis >= 1000000, baujahr >= 2000) %>%
group_by(plz) %>%
summarise(
n = n(),
mean = mean(kaufpreis),
median = median(kaufpreis)
) %>%
filter(n > 10) %>%
arrange(desc(mean)) %>%
collect()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]