Lecture 10
Groups
DATA 8
Fall 2023
Announcements
How to Get to FSM
Functions
(Demo)
Apply
Apply
apply
table_name.apply(function_name, 'column_label(s)')
(Demo)
Prediction
(Demo)
Prediction Accuracy
(Demo)
Discussion Questions
(Demo)
Grouping
Grouping by One Column
The group method aggregates all rows with the same value for a column into a single row in the resulting table.
(Demo)
Lists
Lists are Generic Sequences
A list is a sequence of values (just like an array), � but the values can have different types
[2+3, 'four', Table().with_column('K', [3, 4])]
(Demo)
Cross-Classification
(Demo)