python练习-pandas- 数据清洗

import pandas as pd

pd.set_option('display.unicode.ambiguous_as_wide', True)
pd.set_option('display.unicode.east_asian_width', True)

df = pd.read_csv('https://media-image1.baydn.com/storage_media_image/uyacwn/9b55244d1d12455eb86c1720d9b8ee0a.be56cfdf3e51b3b78f101c45c6c89e8f/%E8%B1%86%E7%93%A3%E5%9B%BE%E4%B9%A6top250.csv')
df.sort_values('价格',inplace=True)
df.drop_duplicates(subset=['评分'],inplace=True)
print(df)

python练习-pandas- 数据清洗

上一篇:动手学数据分析 01


下一篇:Python中pandas透视表pivot_table功能详解(非常简单易懂)