pandas數據變換(一)

1.刪除重複值python import numpy as np import pandas as pd data=pd.DataFrame({'k1':['one','two']*3+['two'],'k2':[1,1,2,3,3,4,4]}) print(data) #輸出: k1 k2 0 one 1 1 two 1 2 one 2 3 two 3 4 on
相關文章
相關標籤/搜索