Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Column Names and Data Types | Section
Data Manipulation with pandas
Osio 1. Luku 15
single

single

bookColumn Names and Data Types

Pyyhkäise näyttääksesi valikon

To display all column names as a list, use the following line of code:

column_names = df.columns

To get a summary of all data types in the DataFrame, use the following attribute: .dtypes.

data_types = df.dtypes
Tehtävä

Swipe to start coding

You are given a DataFrame named wine_data.

  • Get the column names that this DataFrame contains and store the result in the column_names variable.
  • Get the data types of these columns from this DataFrame and store the result in the data_types variable.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 15
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt