1In [2]: df = pd.DataFrame(
2 ...: {
3 ...: "Name": [
4 ...: "Braund, Mr. Owen Harris",
5 ...: "Allen, Mr. William Henry",
6 ...: "Bonnell, Miss. Elizabeth",
7 ...: ],
8 ...: "Age": [22, 35, 58],
9 ...: "Sex": ["male", "male", "female"],
10 ...: }
11 ...: )
12 ...:
13
14In [3]: df
15Out[3]:
16 Name Age Sex
170 Braund, Mr. Owen Harris 22 male
181 Allen, Mr. William Henry 35 male
192 Bonnell, Miss. Elizabeth 58 female
20