Chapter 4 Exercise
unknown
python
2 years ago
206 B
15
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