A Berkeley library for introductory data science.
written by Professor John DeNero, Professor David Culler, Sam Lau, and Alvin Wan
For an example of usage, see the Berkeley Data 8 class.
Use pip
:
pip install datascience
A log of all changes can be found in CHANGELOG.md.
Before proceeding, it's recommended to set up Windows Subsystem for Linux (WSL) for better compatibility with development tools. Follow the official Microsoft documentation to install and set up WSL: Install Windows Subsystem for Linux (WSL)
Once WSL is set up, open your preferred Linux distribution and continue with the following steps.
Ensure you have Python, pip, and other necessary tools installed within your WSL environment.
sudo apt update sudo apt install python3 python3-pip
-
Clone the repository: git clone https://github.com/<your_username>/datascience.git
-
Navigate to the project directory cd datascience
-
Install required packages: pip install -r requirements.txt
-
Run tests using pytest python3 pytest
-
Generate coverage report: python3 coverage run -m pytest
-
View coverage report: python3 coverage report
Optionally, integrate with Coveralls for code coverage tracking: python3 coveralls
That's it! You have now successfully set up your local development environment and generated a test report.
After reviewing the results, you can determine which of the files under the source code folder need more tests based on their corresponding percentages.
Our aim is to have 97% of overall codebase coverage to ensure that there are no discrepencies.
Thank you for considering to help our project, we really appreciate it :)