Skip to content

sborrego/Data-Analysis-and-Visualization-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Analysis and Visualization in Python

University of South Florida workshop
Tuesday, February 27th, 2024
9:00 - 10:30 am EST

This workshop will introduce the basics of the powerful Python data visualization library Matplotlib. We will create simple visualizations for different types of data and explore how to customize and share these visualizations. This is a follow-up workshop to the Python Programming: An Introduction workshop, you can find the material HERE.


Data Download

We will be using real data taken from the Gapminder dataset. To download the data, click HERE to go to the file webpage. Click on the download button, unzip the file, and place the unzipped folder named data on your desktop.


Software Installation

We will program in Python using JupyterLab, a programming environment that runs in a web browser. For this to work you will need a reasonably up-to-date web browser -- Chrome, Safari and Firefox are all supported.

You will also need to find the command line (aka terminal, shell) on your system. If you are not familiar with the command line on your system, you can find help HERE.

To start the software, you will need to use your terminal to open a notebook. In your terminal type jupyter notebook - your terminal will fill with code and a new browser window will open with the Jupyter software. Click on New and Python3, and you are all ready to code in a new notebook! For more information about getting started, HERE is a helpful document.

Recommended Installation - Anaconda

Downloading Python and JupyterLab independently may often times run into issues that are tricky and time consuming to resolve. A simpler method of obtaining Python is to use the all-in-one installer Anaconda. It easy to install, provides a user-friendly interface, and allows easy access to Python packages.

Download Anaconda - https://www.anaconda.com/products/individual
Addition Help with Anaconda - HERE


Advanced User Software Installation

For advanced users that are familiar with the command line and prefer to install Python and JupyterLab individually, you can find the links and installation instructions on the software websites linked below.

Python

There are two current versions of Python -- we will be using version 3.5 or later.

Download Python 3.x - https://www.python.org/downloads/

JupyterLab

Install JupyterLab by following the first set of instructions - https://jupyter.org/jnstall


Additional Software Requirements (for those NOT using Anaconda)

We will be using the Python plotting package, Matplotlib. It must be installed on your computer using the command line using the command pip.

Check that pip is installed correctly

  • Getting started with pip instructions
    • Note: You may need to use python3 instead of python like the instructions indicate
    • Note: You may also need to use pip3 instead of pip
  • If pip is not installed or working, try following these instructions HERE

Install Matplotlib

  • On command line, type:
    • python -m pip install -U pip
    • python -m pip install -U matplotlib
  • Installation instuctions for Matplotlib - HERE

Install Numpy

  • On command line, type:
    • pip install numpy
  • Installation instructions for Numpy - HERE

Install Pandas

  • On command line, type:
    • pip install pandas
  • Installation instructions for Pandas HERE

Additional Learning Resources

About

University of South Florida workshop - 3/02/2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published