Getting value error

df = df.apply(pd.to_numeric)

ValueError: Unable to parse string “2020-03-14” at position 0

when i’m running this part of code from week 11 of data science course im getting this value error

Hi,
Please refer following thread: Week 11: Error Converting entire dataFrame to int64


for the dataframe shown in the picture when i tried this code
df = df.astype(‘int64’)
its giving error
ValueError: invalid literal for int() with base 10: ‘2020-03-14’

Can you try the following method: ValueError: Unable to parse string '2020-03-14' at position 0