tips= sns.load_dataset("tips")
tips.shape
data = tips.iloc[[2,22,222,10,30,50,70,80,201,140]]
print(data)
total_bill tip sex smoker day time size
2 21.01 3.50 Male No Sun Dinner 3
22 15.77 2.23 Female No Sat Dinner 2
222 8.58 1.92 Male Yes Fri Lunch 1
10 10.27 1.71 Male No Sun Dinner 2
30 9.55 1.45 Male No Sat Dinner 2
50 12.54 2.50 Male No Sun Dinner 2
70 12.02 1.97 Male No Sat Dinner 2
80 19.44 3.00 Male Yes Thur Lunch 2
201 12.74 2.01 Female Yes Thur Lunch 2
140 17.47 3.50 Female No Thur Lunch 2
data.set_index(['day','smoker'])
total_bill tip sex time size
day smoker
Sun No 21.01 3.50 Male Dinner 3
Sat No 15.77 2.23 Female Dinner 2
Fri Yes 8.58 1.92 Male Lunch 1
Sun No 10.27 1.71 Male Dinner 2
Sat No 9.55 1.45 Male Dinner 2
Sun No 12.54 2.50 Male Dinner 2
Sat No 12.02 1.97 Male Dinner 2
Thur Yes 19.44 3.00 Male Lunch 2
Yes 12.74 2.01 Female Lunch 2
No 17.47 3.50 Female Lunch 2
tips= sns.load_dataset("tips")tips.shapedata = tips.iloc[[2,22,222,10,30,50,70,80,201,140]]print(data) total_bill tip sex smoker day time size2 21.01 3.50 Male No...