Chapter 4 Exercise

Anonymous
python
03/19/2024 1:11 AM
276 B
30
Indexable
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)
Editor is loading...
Leave a Comment