0

I have a dataframe :

a b
1 dasd
2 fsfr12341
3 %%$dasd11
4 &^hkyo1

I need to remove all the values in column b and make it a blank column

a b
1
2
3
4

Kindly help me on this. thanks alot

1 Answers1

2

Try changing the b column to empty strings '', like this:

df['b'] = ''
U13-Forward
  • 69,221
  • 14
  • 89
  • 114