Summary Week 8
The text is Mastering Spark with R. Making sure that you are using the sc connection and the correct version of Java, install the ggplot2 library. Run the following code: car_group - cars %% + group_by(cyl) %% + summarize(mpg = sum(mpg, =true)) + collect() %% + print() Using similar code determine the average mpg for each cylinder count. Plot both results using the following code: ggplot(aes(r(cyl), mpg), data = car_group) + geom_col(fill = #) + coord_flip() Change the fill to red color and the display to vertical from horizontal.
Libro relacionado
- 2019
- 9781492046325
- Desconocido
Escuela, estudio y materia
- Institución
- Big Data Tools & Architecture
- Grado
- Big Data Tools & Architecture
Información del documento
- ¿Un libro?
- No
- ¿Qué capítulos están resumidos?
- Desconocido
- Subido en
- 15 de julio de 2023
- Archivo actualizado en
- 22 de febrero de 2024
- Número de páginas
- 4
- Escrito en
- 2022/2023
- Tipo
- RESUMEN
Temas
-
week 8