Skip to content

simonlouis15/NBA-Data-Analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBA Data Analytics

Historical Statistics on NBA Champions

Built With

  • Python
  • beautifulsoup4
  • pandas
  • matplotlib
  • seaborn
  • numpy

Getting Started

This guide will help you set up the development environment for the DataAnalytics-NBA project.

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)

Setting up the Virtual Environment

  1. Clone the repository (if you haven't already):

    git clone <repository-url>
    cd DataAnalytics-NBA
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    On macOS/Linux:

    source venv/bin/activate

    On Windows:

    venv\Scripts\activate
  4. Verify the virtual environment is active:

    which python  # Should point to your venv directory
    pip list      # Should show only basic packages

Installing Dependencies

  1. Install required packages (if you have a requirements.txt file):

    pip install -r requirements.txt
  2. Or install packages individually (if no requirements.txt exists):

    pip install <package-name>
  3. Verify installation:

    pip list

Running the Project

  1. Make sure your virtual environment is activated:

    source venv/bin/activate  # macOS/Linux
    # or
    venv\Scripts\activate     # Windows
  2. Run your project:

    python main.py

Deactivating the Virtual Environment

When you're done working on the project:

deactivate

Troubleshooting

  • If you get permission errors: Make sure you have write permissions in the project directory
  • If packages fail to install: Try upgrading pip first: pip install --upgrade pip
  • If you need to recreate the environment: Delete the venv folder and repeat the setup steps
  • If Black formatting fails: Make sure you're in the virtual environment and Black is installed

Notes

  • Always activate the virtual environment before working on the project
  • The virtual environment keeps project dependencies isolated from your system Python
  • Remember to add venv/ to your .gitignore file if it's not already there

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages