Data Analysis with Python Projects - Demographic Data Analyzer

I cannot get started with my replit file.

The instructions are as follows:

  • Start by importing the project on Replit.
  • Next, you will see a .replit window.
  • Select Use run command and click the Done button.

My issue: Where do I select ‘Use run command’? I cannot get past this first step, no matter what I try, the code is simply not working or results are not showing in the console.

They may have changed how replit works, but you can edit this setting in the .replit file. You may need to show hidden files

Edit this line in your .replit file so that it looks like this
run = "python3 main.py"

If it’s still not working please link to your replit so we can see it.

It might already be there in this form:
run = "Use run command"
You can edit that line.

Thank you.
Here is the link to my project: Sign Up - Replit
I need serious help because I do not know what I am doing. I want to run the code as follows:

import panda as pd
df = pd.read_csv(‘adult.data.csv’)

But there seems to always be an issue. I am not sure which file I should type the code into. And I am not sure how to avoid the many errors shown in the console after running the code.

Thank you very much for your help.

You should be putting all of your code into the demographic_data_analyzer.py file

Your .replit is fine, don’t need to fix that.

All of those errors are because the automatic tests are running on your code. If you want to disable that until you’re ready for the tests edit main.py and comment out this line, the 2nd line here:

# Run unit tests automatically
main(module='test_module', exit=False)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.