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.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Unconverted data error

Unconverted data error

0
Votes
1
Answer

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
0
Votes

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

×
EXTENDED SALE
Learn Data Science this Summer!
Get 50% OFF