ValueError: zero-size array to reduction operation minimum which has no identity / Seaborn and Matplotlib...












0















Here is a runnable snippet of code which generates the error on my machine. I have this error (ValueError: zero-size array to reduction operation minimum which has no identity).



import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

import seaborn as sns
from pandas import DataFrame



data=pd.read_csv(r"C:UsersyavuzDesktopPokemon.csv", sep='t',
engine='python')

f,ax=plt.subplots(figsize=(18,18))

sns.heatmap(data.corr())

**Error**

Traceback (most recent call last):
File "C:/Users/yavuz/.PyCharmEdu2018.2/config/scratches/scratch_4.py", line 14, in <module>
sns.heatmap(data.corr())
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 517, in heatmap
yticklabels, mask)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 167, in __init__
cmap, center, robust)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 206, in _determine_cmap_params
vmin = np.percentile(calc_data, 2) if robust else calc_data.min()
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesnumpycore_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity

Process finished with exit code 1


ValueError: zero-size array to reduction operation minimum which has no identity pls help me










share|improve this question























  • The best help you can expect here is a pointer to Minimal, Complete, and Verifiable example, as people usually have no magic power to know what Pokemon.csv is and what it contains.

    – ImportanceOfBeingErnest
    Nov 14 '18 at 20:50
















0















Here is a runnable snippet of code which generates the error on my machine. I have this error (ValueError: zero-size array to reduction operation minimum which has no identity).



import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

import seaborn as sns
from pandas import DataFrame



data=pd.read_csv(r"C:UsersyavuzDesktopPokemon.csv", sep='t',
engine='python')

f,ax=plt.subplots(figsize=(18,18))

sns.heatmap(data.corr())

**Error**

Traceback (most recent call last):
File "C:/Users/yavuz/.PyCharmEdu2018.2/config/scratches/scratch_4.py", line 14, in <module>
sns.heatmap(data.corr())
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 517, in heatmap
yticklabels, mask)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 167, in __init__
cmap, center, robust)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 206, in _determine_cmap_params
vmin = np.percentile(calc_data, 2) if robust else calc_data.min()
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesnumpycore_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity

Process finished with exit code 1


ValueError: zero-size array to reduction operation minimum which has no identity pls help me










share|improve this question























  • The best help you can expect here is a pointer to Minimal, Complete, and Verifiable example, as people usually have no magic power to know what Pokemon.csv is and what it contains.

    – ImportanceOfBeingErnest
    Nov 14 '18 at 20:50














0












0








0








Here is a runnable snippet of code which generates the error on my machine. I have this error (ValueError: zero-size array to reduction operation minimum which has no identity).



import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

import seaborn as sns
from pandas import DataFrame



data=pd.read_csv(r"C:UsersyavuzDesktopPokemon.csv", sep='t',
engine='python')

f,ax=plt.subplots(figsize=(18,18))

sns.heatmap(data.corr())

**Error**

Traceback (most recent call last):
File "C:/Users/yavuz/.PyCharmEdu2018.2/config/scratches/scratch_4.py", line 14, in <module>
sns.heatmap(data.corr())
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 517, in heatmap
yticklabels, mask)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 167, in __init__
cmap, center, robust)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 206, in _determine_cmap_params
vmin = np.percentile(calc_data, 2) if robust else calc_data.min()
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesnumpycore_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity

Process finished with exit code 1


ValueError: zero-size array to reduction operation minimum which has no identity pls help me










share|improve this question














Here is a runnable snippet of code which generates the error on my machine. I have this error (ValueError: zero-size array to reduction operation minimum which has no identity).



import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

import seaborn as sns
from pandas import DataFrame



data=pd.read_csv(r"C:UsersyavuzDesktopPokemon.csv", sep='t',
engine='python')

f,ax=plt.subplots(figsize=(18,18))

sns.heatmap(data.corr())

**Error**

Traceback (most recent call last):
File "C:/Users/yavuz/.PyCharmEdu2018.2/config/scratches/scratch_4.py", line 14, in <module>
sns.heatmap(data.corr())
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 517, in heatmap
yticklabels, mask)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 167, in __init__
cmap, center, robust)
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesseabornmatrix.py", line 206, in _determine_cmap_params
vmin = np.percentile(calc_data, 2) if robust else calc_data.min()
File "C:UsersyavuzPycharmProjectsdenemevenvlibsite-packagesnumpycore_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity

Process finished with exit code 1


ValueError: zero-size array to reduction operation minimum which has no identity pls help me







python-3.x matplotlib seaborn






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 20:40









Yavuz Selim KayışYavuz Selim Kayış

52




52













  • The best help you can expect here is a pointer to Minimal, Complete, and Verifiable example, as people usually have no magic power to know what Pokemon.csv is and what it contains.

    – ImportanceOfBeingErnest
    Nov 14 '18 at 20:50



















  • The best help you can expect here is a pointer to Minimal, Complete, and Verifiable example, as people usually have no magic power to know what Pokemon.csv is and what it contains.

    – ImportanceOfBeingErnest
    Nov 14 '18 at 20:50

















The best help you can expect here is a pointer to Minimal, Complete, and Verifiable example, as people usually have no magic power to know what Pokemon.csv is and what it contains.

– ImportanceOfBeingErnest
Nov 14 '18 at 20:50





The best help you can expect here is a pointer to Minimal, Complete, and Verifiable example, as people usually have no magic power to know what Pokemon.csv is and what it contains.

– ImportanceOfBeingErnest
Nov 14 '18 at 20:50












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53308409%2fvalueerror-zero-size-array-to-reduction-operation-minimum-which-has-no-identity%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53308409%2fvalueerror-zero-size-array-to-reduction-operation-minimum-which-has-no-identity%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Error while running script in elastic search , gateway timeout

Adding quotations to stringified JSON object values