Chapter 4 Exercise

mail@pastecode.io avatar
unknown
python
a month ago
206 B
2
Indexable
Never
import pandas as pd

df = pd.read_csv('/datasets/music_log.csv')

df = df.rename(
    columns = {
    ' user_id': 'user_id',
    'total play': 'total_play',
    'Artist': 'artist'
    }
)

print(df.columns)
Leave a Comment