pandas map

map相关用法

import pandas as pd
df2 = pd.DataFrame({
   
    
    'a': ['one', 'one', 'two', 'three', 'two', 'one', 'six'],
 'b': ['x', 'y', 'y', 'x', 'y', 'x', 'x'],
 'c': np.random.randn(7)

猜你喜欢

转载自blog.csdn.net/xiaoyurainzi/article/details/131041422