Table of Contents
Activity carried out to train my knowledge of statistical material.
1 - download the Titanic base: url = 'https://web.stanford.edu/class/archive/cs/cs109/cs109.1166/stuff/titanic.csv'
2- Identify and classify the variables:
3- Calculate the following measurements on the age of passengers:
- a) the average
- b) median
- c) fashion
- d) standard deviation
- e) overall amplitude
- f) coefficient of variation
4- Separate the data by Pclass and check:
- a) Which class had the highest survival rate?
- b) Which class had the highest average age?
- c) rank each Age in order of homogeneity
-
Clone the repo
git clone https://github.com/HeitorLouzeiro/pandas-activity-titanic-base.git
-
Access the project folder in terminal/cmd
cd pandas-activity-titanic-base
-
Create a virtualenv with Python 3.9.0.
python -m venv venv
-
Activate virtualenv.
- Ubunto
source venv/bin/activate
- MacOs
source venv/bin/activate
- Windows
venv\scripts\activate
-
Install as dependencies.
pip install -r requirements.txt
-
OBS. If you get an error installing a package, follow the instructions.
-
Install scipy
pip install scipy
-
install pandas.
pip install pandas
-
-
Run one of the questions below in the terminal.
python main.py
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/Improvements
) - Commit your Changes (
git commit -m 'Add my new Enhancements'
) - Push to the Branch (
git push origin feature/Improvements
) - Open a Pull Request
We thank the following people who contributed to this project:
Heitor Louzeiro |
Distributed under the MIT License. See LICENSE for more information.
Project Link: https://github.com/HeitorLouzeiro/pandas-activity-titanic-base