Skip to Main Content

University Library, University of Illinois at Urbana-Champaign

Basic Data Analysis in Python

This guide will go over how to utilize the Python programming language for basic data analysis.

Scholarly Commons

Profile Photo
Scholarly Commons
Contact:
220 & 306 Main Library

Drop-ins welcome @ 306

306 Service Desk Hours:
Monday - Thursday: 10:30am-7:30 pm
Friday: 10:30 am - 6:30 pm
Sunday: 2:00pm - 6:30pm

Room 220 is open for use at all times the Main Library is open.

Phone: 217-244-1331
Website
Social: Twitter Page

Maximum

While maximum and minimum would be more helpful when you are presented with a much longer list, it is important to introduce these functions because they serve as a gateway into exploring Python's built-in functions. For these two calculations, we do not need to import anything.

After creating your new project, setting it up, and creating your new list, all we need to do is use the max() function and fill the parentheses with your list name.

This will produce another new number for your result.

Minimum

Just like maximum, we can use a built-in Python function, min(). Like usual, fill the parentheses with your list name, run the program, and find your new result in the bottom window.