-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" #1
Comments
There are 4 python files uploaded in the repository. Which part of the file does the code belong to? Don't run the whole code at once since it would be hard to debug. Try running section-wise, i.e few lines per run. I have used Spyder IDE which allows running only selected code by pressing Ctrl + Enter. If you use other Python IDEs, only run the section by uncommenting all the other part of the code. |
Hello:
I'm really looking for problems in segmented operation,and I haved used jupyter notebook.It works the same as you said by pressing Ctrl + Enter.The problem is in dimensional_reduction.py.I really don't know what should I do.Thanks.
…------------------ 原始邮件 ------------------
发件人: "Barun"<[email protected]>;
发送时间: 2020年4月6日(星期一) 中午12:02
收件人: "benjamin2044/PV_fault_Python"<[email protected]>;
抄送: "510220668"<[email protected]>;"Author"<[email protected]>;
主题: Re: [benjamin2044/PV_fault_Python] KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" (#1)
There are 4 python files uploaded in the section. Which part of the file does the code belong to?
Don't run the whole code at once since it would be hard to debug. Try running section-wise, i.e few lines per run. I have used Spyder IDE which allows running only selected code by pressing Ctrl + Enter. If you use other Python IDE, only run the section by uncommenting all the other part of the code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have tested the code multiple times and there were no errors. Please upload the screenshot of the code where you have the problem. |
I don't know why it is always wrong here.I did it step by step,In[19] is my question.Does this have anything to do with the version of tensorflow?
I'm terribly sorry to disturb you.
…------------------ 原始邮件 ------------------
发件人: "Barun"<[email protected]>;
发送时间: 2020年4月7日(星期二) 下午5:17
收件人: "benjamin2044/PV_fault_Python"<[email protected]>;
抄送: "510220668"<[email protected]>;"Author"<[email protected]>;
主题: Re: [benjamin2044/PV_fault_Python] KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" (#1)
I have tested the code multiple times and there were no errors. Please upload the screenshot of the code where you have the problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I also had some issues when I upgraded Tensorflow. I had to downgrade it again. I have tested the code in Tensorflow version 1.15. Also the Tensorflow I have used is CPU version not GPU. |
Hello:
Did you mean you can run normally on the code in Tensorflow version 1.15?
My Tensorflow version is 1.5,should I upgrade it?
…------------------ 原始邮件 ------------------
发件人: "Barun"<[email protected]>;
发送时间: 2020年4月8日(星期三) 上午6:15
收件人: "benjamin2044/PV_fault_Python"<[email protected]>;
抄送: "510220668"<[email protected]>;"Author"<[email protected]>;
主题: Re: [benjamin2044/PV_fault_Python] KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" (#1)
I also had some issues when I upgraded Tensorflow. I had to downgrade it again. I have tested the code in Tensorflow version 1.15.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I don't know what's going on. I can't install version 1.15 on my computer.Always show red font.
…------------------ 原始邮件 ------------------
发件人: "Barun"<[email protected]>;
发送时间: 2020年4月8日(星期三) 上午6:15
收件人: "benjamin2044/PV_fault_Python"<[email protected]>;
抄送: "510220668"<[email protected]>;"Author"<[email protected]>;
主题: Re: [benjamin2044/PV_fault_Python] KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" (#1)
I also had some issues when I upgraded Tensorflow. I had to downgrade it again. I have tested the code in Tensorflow version 1.15.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
pip install tensorflow==1.15 https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html |
@crazy-python The error you have not belongs to the version of tensorflow. It just belongs to the indexing of pandas. May be the link https://stackoverflow.com/questions/55652574/how-to-solve-keyerror-unone-of-index-dtype-object-are-in-the-colum helps you alot. |
hello:
I 'm sorry to disturb you again.The way you said didn't solve my problem.May I have a look at your running results about "dimensional_reduction.py"?Can you send me some pictures?Thanks a lot...
…------------------ 原始邮件 ------------------
发件人: "Bhuwan"<[email protected]>;
发送时间: 2020年4月9日(星期四) 晚上8:26
收件人: "benjamin2044/PV_fault_Python"<[email protected]>;
抄送: "510220668"<[email protected]>;"Mention"<[email protected]>;
主题: Re: [benjamin2044/PV_fault_Python] KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" (#1)
@crazy-python The error you have not belongs to the version of tensorflow. It just belongs to the indexing of pandas. May be the link https://stackoverflow.com/questions/55652574/how-to-solve-keyerror-unone-of-index-dtype-object-are-in-the-colum helps you alot.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry for the late reply. I had been busy lately. |
Code has now been updated. However, it is not advised to run the whole program at once. It is better to run a part of the code commenting out rest of the code, and continue testing like this. |
I'm so sorry that did't reply to you in time,because I always Concentrate on my thesis.
I've read your updated code,and still got the same mistake about 132 line:
Let me study it better again,Thank you so much for helping me with my analysis.
…------------------ 原始邮件 ------------------
发件人: "Barun"<[email protected]>;
发送时间: 2020年4月27日(星期一) 晚上7:01
收件人: "benjamin2044/PV_fault_Python"<[email protected]>;
抄送: "510220668"<[email protected]>;"Mention"<[email protected]>;
主题: Re: [benjamin2044/PV_fault_Python] KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" (#1)
Code has now been updated. However, it is not advised to run the whole program at once. It is better to run a part of the code commenting out rest of the code, and continue testing like this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
In 3000 patterns data , why voltages became zero during open fault , also below 30 degree is labeled as cloudy? please explain |
1 similar comment
In 3000 patterns data , why voltages became zero during open fault , also below 30 degree is labeled as cloudy? please explain |
I runned the code,but I met the problem of KeyError: "None of [Index(['Fault'], dtype='object')] are in the [columns]" in 132,so what should I do?Thanks a lot.
The text was updated successfully, but these errors were encountered: