Skip to content

Instantly share code, notes, and snippets.

@cooneycw
Last active April 23, 2025 23:34
Show Gist options
  • Select an option

  • Save cooneycw/7965af9f98882afb81d9b73dd165e635 to your computer and use it in GitHub Desktop.

Select an option

Save cooneycw/7965af9f98882afb81d9b73dd165e635 to your computer and use it in GitHub Desktop.
Python starter code
import pandas as pd
url_spotify = "https://gist.githubusercontent.com/cooneycw/b4021d5d872ee4a07239f0ea25c23cd7/raw/spotify_data.csv"
url_nba_stats = "https://gist.githubusercontent.com/cooneycw/a90ce2c2adf1208cfc6359c4fa83d928/raw/nba_stats.csv"
# Read the CSV directly into a pandas DataFrame
df_spotify = pd.read_csv(url_spotify)
df_nba_stats = pd.read_csv(url_nba_stats)
# Now you can work with the data
print('df_spotify')
print(df_spotify.head())
print(df_spotify.columns)
print('df_nba')
print(df_nba_stats.head())
print(df_nba_stats.columns)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment