ParthS007 / Loan-Approval-Prediction

Loan Application Data Analysis
https://youtu.be/tz_yVYjfyW4
Apache License 2.0
90 stars 76 forks source link

KeyError #1

Closed MOONCHAND closed 5 years ago

MOONCHAND commented 5 years ago

Sir I'm having an error in your code that is keyError and I'm unable to find what types of error it is? Please help me sir! The code is here. Screenshot (118) please please help me sir!

MOONCHAND commented 5 years ago

And before "df['Self_Employed'].fillna('No',inplace =True)" There is no error at all.All are running similar as your code. Screenshot (119)

MOONCHAND commented 5 years ago

Please reply as soon as possible!

ParthS007 commented 5 years ago

@MOONCHAND I am looking into it.

MOONCHAND commented 5 years ago

Sir,I think the KeyError is coming from "the reading training data set".Because I've seen your code there is no Disk drive mentioning to reading the training data set over there and I've mention Disk drive(F) to access the data set.Just have a look once. Screenshot (120)

handsometunex123 commented 5 years ago

I am experiencing the same issue. Please Parth help fix asap

aeshna25 commented 5 years ago

@MOONCHAND even by specifying the disk drive, the error is the same. Did this work for you?

aeshna25 commented 5 years ago

@ParthS007 when I ran ---- print(' Self_Employed ' in df.columns), the output was False. That means there is a possibility of whitespace in the respective column. Please reply if you fix the bug.

MOONCHAND commented 5 years ago

@MOONCHAND even by specifying the disk drive, the error is the same. Did this work for you?

No not at all.I am getting keyError too.But in the code of Parth007 there is no Diskdrive mentioned and without mentioning diskdrive how to read the data that's confusing to me.I am not really sure but that's why we are getting errors.

MOONCHAND commented 5 years ago

Please reply sir as soon as possible.

ParthS007 commented 5 years ago

Hello Everyone, I have gone through the error and I will fix it as soon as I get some time. I have my exams right now, will correct the error after exams and I will update you all here when I have fixed the error. Thanks for looking into my project. :)

Sweety310897 commented 5 years ago

Did you resolve the issue. I have tried your code.Even I got the same error as MOONCHAND got. Can you please verify it.

ParthS007 commented 5 years ago

solved in #3