Answers for "delete a column dataframe and replace it with another column"

1

python - remove repeted columns in a df

df.loc[:,~df.T.duplicated(keep='first')]
Posted by: Guest on October-22-2020
20

replace column values pandas

df['column'] = df['column'].str.replace(',','-')
df
Posted by: Guest on February-25-2020

Code answers related to "delete a column dataframe and replace it with another column"

Python Answers by Framework

Browse Popular Code Answers by Language