Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Columns Adjustments | Detecting Spam
Identifying Spam Emails

book
Columns Adjustments

Compito

Swipe to start coding

  1. Drop the Unnamed: 0 column.
  2. Assign names to columns.

Soluzione

# Remove unnecessary column
df.drop('Unnamed: 0', axis=1, inplace=True)

# Change column names
df.columns = ['label', 'text', 'class']

Mark tasks as Completed
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt