🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Anybody can ask a question
Anybody can answer
The best answers are voted up and moderated by our team

Unconverted data error

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 Answer

365 Team

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
The 365 Team