How to replace values of different columns with the column name for many columns in pandas

前端 未结 0 1152
夕颜
夕颜 2021-01-15 21:33

I have a pandas dataframe

import pandas as pd
import numpy as np
foo = pd.DataFrame({\'prod_a\': [np.nan, \'yes\', \'no\'], \'id\': [1,2,3],
                          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题