application_vnd.jupyter.stderr_output_1.png
import pandas as pd

csv_url = 'https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%204/Datasets/TopSellingAlbums.csv'

df = pd.read_csv(csv_url)

csv_path = '../data/TopSellingAlbums.csv'

df = pd.read_csv(csv_path)

df.iloc[0, 0]

df.loc[0, 'Artist']

df.loc[1, 'Artist']

df.iloc[0:2, 0:3]

df.loc[0:2, 'Artist':'Released']

new_songs = df[df['Released'] >= 1980]
new_songs

new_songs.to_csv('../data/new_songs.csv')