4.2 数据转换(全)
4.2数据转换import numpy as npimport pandas as pd移除重复数据data = pd.DataFrame({'k1': ['one','two']*3+['two'], 'k2': [1,1,2,3,3,4,4]})data k1 k2 0 one 1 1