Lecture 12
Table Examples
DATA 8
Spring 2023
Announcements
Table Review
Important Table Methods
t.select(column, …) or t.drop(column, …)
t.take([row_num, …]) or t.exclude([row_num, …])
t.sort(column, descending=False)
t.where(column, are.condition(...))
t.apply(function_name, column, …)
t.group(column) or t.group(column, function_name)
t.group([column, …]) or t.group([column, …], function_name)
t.pivot(cols, rows) or t.pivot(cols, rows, vals, function_name)
t.join(column, other_table, other_table_column)
Table Practice
Bike Sharing in SF Bay Area
(Demo)
Hourly bike sharing in the Bay Area began with a pilot program in 2014-2015 that produced a public dataset.
by Bjorn Vermeersch