0
Pandas dataframe missing value Question
My output is correct but due to column heading , it is not getting matched with the test cases …plz tell how to remove column heading (0) from the dataframe …. https://code.sololearn.com/cWtAL5viA5qG/?ref=app
1 ответ
+ 3
hi seema your question and code does not really make sense and it looks like someone elses code. not sure if you accidentally mixed it up.
for instance, you mention dataframe which is pandas, while the code you are sharing uses numpy.
if you are using pandas, the column heading (0) is most likely referencing your index column. to remove the index column you may have to drop your index. an example would look like:
df.reset_index(drop=True,inplace=True)
or maybe convert the dataframe to a numpy array with:
df.to_numpy()
best of luck.