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 | Analyzing the Data
Pandas First Steps
course content

Kurssisisältö

Pandas First Steps

Pandas First Steps

1. The Very First Steps
2. Reading Files in Pandas
3. Analyzing the Data

book
Column Names and Data Types

To see all the column names as a list, we have to use this line of code:

python

We can also get a summary of all the types of data that are in the dataframe. For this, we have to use the following attribute: .dtypes.

python
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 3. Luku 5
toggle bottom row

book
Column Names and Data Types

To see all the column names as a list, we have to use this line of code:

python

We can also get a summary of all the types of data that are in the dataframe. For this, we have to use the following attribute: .dtypes.

python
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 3. Luku 5
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt