Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Viewing the Data | Analyzing the Data
Pandas First Steps
course content

Conteúdo do Curso

Pandas First Steps

Pandas First Steps

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

bookViewing the Data

To view the first few rows of a dataset in Python, we can utilize the head() method. This function accepts an integer as its argument, which specifies the number of rows to display (by default, it shows first 5 rows). Let's take a look at the first 10 rows of our dataset:

If we want to see the last few rows of a dataframe, we can use the tail() method. It works similarly to the head() method:

Another useful function for exploring dataframes is sample(). This function fetches random records from a dataframe. By default, it retrieves a single random record unless specified otherwise.

Tarefa

We have a dataframe named frame.

  1. We need to extract the first 10 rows from this dataframe.
  2. We need to retrieve the last 15 rows from this dataframe.
  3. We want to select a random sample of 12 rows from this dataframe.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 1
toggle bottom row

bookViewing the Data

To view the first few rows of a dataset in Python, we can utilize the head() method. This function accepts an integer as its argument, which specifies the number of rows to display (by default, it shows first 5 rows). Let's take a look at the first 10 rows of our dataset:

If we want to see the last few rows of a dataframe, we can use the tail() method. It works similarly to the head() method:

Another useful function for exploring dataframes is sample(). This function fetches random records from a dataframe. By default, it retrieves a single random record unless specified otherwise.

Tarefa

We have a dataframe named frame.

  1. We need to extract the first 10 rows from this dataframe.
  2. We need to retrieve the last 15 rows from this dataframe.
  3. We want to select a random sample of 12 rows from this dataframe.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 1
toggle bottom row

bookViewing the Data

To view the first few rows of a dataset in Python, we can utilize the head() method. This function accepts an integer as its argument, which specifies the number of rows to display (by default, it shows first 5 rows). Let's take a look at the first 10 rows of our dataset:

If we want to see the last few rows of a dataframe, we can use the tail() method. It works similarly to the head() method:

Another useful function for exploring dataframes is sample(). This function fetches random records from a dataframe. By default, it retrieves a single random record unless specified otherwise.

Tarefa

We have a dataframe named frame.

  1. We need to extract the first 10 rows from this dataframe.
  2. We need to retrieve the last 15 rows from this dataframe.
  3. We want to select a random sample of 12 rows from this dataframe.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

To view the first few rows of a dataset in Python, we can utilize the head() method. This function accepts an integer as its argument, which specifies the number of rows to display (by default, it shows first 5 rows). Let's take a look at the first 10 rows of our dataset:

If we want to see the last few rows of a dataframe, we can use the tail() method. It works similarly to the head() method:

Another useful function for exploring dataframes is sample(). This function fetches random records from a dataframe. By default, it retrieves a single random record unless specified otherwise.

Tarefa

We have a dataframe named frame.

  1. We need to extract the first 10 rows from this dataframe.
  2. We need to retrieve the last 15 rows from this dataframe.
  3. We want to select a random sample of 12 rows from this dataframe.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 3. Capítulo 1
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
some-alt