Hi, I am in the last portion of Medical Data Visualizer project. I have created my correlation matrix, and also my heat map. However, it does not quite look as the example provided on the test - figure 2, I am wondering what other arguments I can add to edit my map.
Here is my Code,
mask = np.zeros_like(df_heat_map)
mask[np.triu_indices_from(mask)] = True
with sns.axes_style(βwhiteβ):
f, ax = plt.subplots(figsize=(16, 12))
ax = sns.heatmap(df_heat_map, mask=mask, square=True, annot = True, annot_kws={βsizeβ: 8}, vmax= .24)
Hello, I will appreciate any help regarding a problem related to this heatmap, according to my code the .png is showing the exact correct values as shown below:
Second list contains 3 additional elements.
First extra element 91:
ββ
Diff is 989 characters long. Set self.maxDiff to None to see it. : Expected differnt values in heat map.
Ran 4 tests in 8.309s
FAILED (failures=1)
As a sidenote, I had to replace my poetry.lock file and added the latest packages with their dependecies to my Repl.it, so the versions are as following:
matplotlib: 3.3.1
numpy: 1.19.1
pandas: 1.1.1
seaborn: 0.10.1
My Repl.it: fcc-medical-data-visualizer - Replit
Thank you in advance for your time and help!
Thanks for your answer, I canβt seem to find a way to select Older Versions of the packages from Repl.it, a fresh fork from the Curriculum Project Link outputs the following error, hence why Iβm adding packages manually:
Repl.it: Updating package configuration
β python3 -m poetry lock
[RuntimeError]
The Poetry configuration is invalid:
βdescriptionβ is a required property
exit status 1
Repl.it: Package operation failed.
What Iβm doing is selecting the Packages from the left side Toolbar , but only the latest version is shown by the search package tool
Thanks! Now it is working! I added the desciption = ββ you highlighted and also a new line with matplotlib = β3.2.2β after seaborn = β*β , since that was the version that the original file in the Curriculum Project was updating to 3.3.1, important to do NOT use a carat before the number version of matplotlib, since this will use the latest package anyway