Last answered:

26 Feb 2020

Posted on:

21 Feb 2020

0

Unconverted data error

Hi there! I'm having some trouble executing the script. Also I think the dataset in Kaggle has been updated, so there might be some differences (for example I get a lot of NaN in ID column). When I run the code: loan_data['earliest_cr_line_date'] = pd.to_datetime(loan_data['earliest_cr_line'], format = '%b-%y')

I get an error message:
ValueError: unconverted data remains: 01

How should I deal with it?
1 answers ( 0 marked as helpful)
Instructor
Posted on:

26 Feb 2020

0
Hi Viktorija, Could you please provide the line (lines) of code that produces this error? Regarding the kaggle dataset - we have actually divided it into two -> data until 2014 and data after 2014, so we can test the dataset. You can find all datasets here: https://www.dropbox.com/sh/6cc01fcljk457gd/AADD_MJFfVcE5VR3UzlKDATla?dl=0 Best,
The 365 Team

Submit an answer