pandas map

Map related usage

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)

Guess you like

Origin blog.csdn.net/xiaoyurainzi/article/details/131041422
Map
Map
map
map