GEOG 30323: Data Analysis & Visualization
2026-11-17
Obesity infographics:
ipywidgets package allows you to build basic graphical user interfaces (GUIs) to explore your data in the Notebookinteract function in ipywidgetsimport pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
mx = pd.read_csv("https://raw.githubusercontent.com/walkerke/geog30323/main/data/mexico.csv")
cols = ['gdp_pc', 'pri', 'sec', 'ter', 'pct_65plus']
def make_plot(x, y, title):
sns.lmplot(data = mx, x = x, y = y)
plt.title(title)
plt.show()
interact(make_plot, x = cols, y = cols, title = "Enter a plot title!")Arguments used in interact() correspond to the following:
True or False) returns a checkboxExperiment with the functions you’ve written this semester!
You absolutely should be using AI assistants when you write code. However:
You can’t just build apps on “vibes” alone
You need to think and act like an engineer / project manager
Clear direction and plenty of context will help your project succeed
digital content of low quality that is produced usually in quantity by means of artificial intelligence
GEOG 30323 | Data Analysis & Visualization