Introduction to Data Analysis in Python

In [1]:
import pandas as pd

tips = pd.read_csv("https://milliams.com/courses/data_analysis_python/tips.csv")
In [2]:
tips[(tips["size"] >= 4) & (tips["time"] == "Lunch")]
Out[2]:
total_bill tip day time size
77 27.20 2.80 Thur Lunch 4
85 34.83 3.62 Thur Lunch 4
119 24.08 2.04 Thur Lunch 4
125 29.80 2.94 Thur Lunch 6
141 34.30 4.69 Thur Lunch 6
142 41.19 3.50 Thur Lunch 5
143 27.05 3.50 Thur Lunch 6
197 43.11 3.50 Thur Lunch 4
204 20.53 2.80 Thur Lunch 4