笔记
import pandas as pd
df = pd.read_csv("./data/dogNames2.csv")
# print(df.head())
# print(df.info())
# DataFrame中排序的方法
df = df.sort_values(by="Count_AnimalName",ascending=False)
# print(df.head(5))
# pandas取行或列的注意点
# 方括号写数组,表示取行,对行进行操作
# 写字符串,表示的取列索引,对列进行操作
# print(df[:20])
# print(df["Row_Labels"])
# print(type(df["Row_Labels"]))
print(df)