Visualize Baltimore City Employees Salaries Dataset
Conda is used to set up my environment. Packages are installed from conda-forge
. Starting in my base environment, I did the following to setup my environment, which I called data_viz
:
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create --name data_viz python=3.8 numpy pandas matplotlib jupyterlab
conda activate data_viz
conda env export -f environment.yml
The last command created a yaml file with the specific package versions and package dependencies.
I set this environment up on my chromebook's beta linux terminal. In order to install matplotlib, I needed to install some packages(I think libfreetype6-dev was the critical package):
sudo update
sduo upgrade
sudo apt install freetype2-demons freetype2-doc
sudo apt install pkg-config
sudo apt install libfreetype6-dev
And then I created my virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -U pip
pip install -U steuptools
pip install wheel
pip install numpy pandas matplotlib
Go to the Baltimore City Employees Salaries webpage. In the upper right of the page, there is an export button. Download as a csv
file (not csv for excel
). Place the file downloaded file, Baltimore_City_Employees_Salaries.csv
, in the data directory.