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

Credit risk modeling

Credit risk modeling

Super Learner
0
Votes
1
Answer

Hi,

I am having problem while running the code in the credit risk modeling

loan_data[‘earliest_cr_line’]

0         Jan-85
1         Apr-99
2          1-Nov
3         Feb-96
4         Jan-96
           ...  
466280     3-Apr
466281    Jun-97
466282     1-Dec
466283     3-Feb
466284    Feb-00
Name: earliest_cr_line, Length: 466285, dtype: object

loan_data[‘earliest_cr_line_date’]= pd.to_datetime(loan_data[‘earliest_cr_line’], format = ‘%b-%y’)
This above line of code gives error

ValueError: time data '1-Nov' does not match format '%b-%y' (match)
Where as when the instructor runs the above code, he doesn\'t get any error Please watch the video In general pre-processing part in that 2 nd video. The problem is , the instructor used the different data and the data provided to us is different, I have used the split data from drop box. Please provide us the data used by the instructor. Thanks.
1 Answer

Super Learner
0
Votes

Anyone has this above issue?

×
LAST CHANCE
Ready to Learn Data Science?
50% OFF