Data Analysis with Python Projects - Medical Data Visualizer

Tell us what’s happening:

This is currently my issue while trying to run my code:

"The current project’s Python requirement (>=3.7,<4.0) is not compatible with some of the required packages Python requirement:

  • numpy requires Python >=3.9, so it will not be satisfied for Python >=3.7,<3.9

Because no versions of numpy match >1.26.2,<2.0.0
and numpy (1.26.2) requires Python >=3.9, numpy is forbidden.
So, because root depends on numpy (^1.26.2), version solving failed."

I have been trying to update the python but then it doesn’t work and if I change the numpy version as well it also doesn’t work. Please help!

Your code so far

link to my code: Sign Up - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Data Analysis with Python Projects - Medical Data Visualizer

add these specifications in your pyproject.toml file

python = ">=3.7,<4.0"
numpy = "^1.26.2"

python = ">=3.9"

and then run poetry update or poetry install in your terminal to update the dependencies


Thank you, that worked. I am done with my code but my chart is not generating Please help me figure out what the issue might be.

1 Like

You have some PNG images in the files menu. Are those the charts you generated?

Otherwise, since this is a new problem can you please start a new topic with any errors or info (and a link to your replit)?

1 Like

Hi - i get the same error and when i have updated the specifications and run the poetry install - it gives me the following error - “Cannot overwrite a value (at line 12, column 32)”

okay, i’ll start a new topic. but no those are how the charts are supposed to look if my code works.

print("Data before plotting:", df_cat_grouped)
  # Check if df_cat_grouped has the expected data
# ... rest of the plotting code

# Inside draw_heat_map() function
print("Filtered data:", df_heat) 
 # Check if df_heat has the expected filtered data
# ... rest of the heatmap plotting code

Insert debugging statements or print commands within the functions (draw_cat_plot() and draw_heat_map() ) to check the flow of the code and inspect the data

Please start a new topic and provide a link to your replit

1 Like

That worked thank you!!


It’s working now so no need for that anymore but thanks!

1 Like

Thanks - i have posted as a new topic.

1 Like