Aug-26-2019, 02:10 PM
Hi,
I have below DataFrame,
I want to delete columns with column name 'Datecode" in "zeroth row", I can not use df.drop
df.drop(['Datecode'], axis=1), but it does not work. Kindly help, how to do this.
I have below DataFrame,
Group Category Subject AC1 AC2 AC3 BM1 BM2 NJ1 NJ2 NJ3 Va Vb Vc Datecode Run1 Status Datecode Rank Datecode Power voltage HY JK KL 2019-08-01 23 29 2019-08-12 0 2019-08-03 123 110 HH MK VN 2019-08-09 28 45 2019-08-06 32 2019-08-13 125 220
I want to delete columns with column name 'Datecode" in "zeroth row", I can not use df.drop
df.drop(['Datecode'], axis=1), but it does not work. Kindly help, how to do this.