Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Analyzing Columns | Preprocessing Data: Part II
Analyzing and Visualizing Real-World Data

bookAnalyzing Columns

Let's inspect how many object columns are left.

12345678
# Loading the library import pandas as pd # Reading the data df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/72be5dde-f3e6-4c40-8881-e1d97ae31287/shops_data2.csv') # Checking columns types print(df.dtypes)
copy

As you can see, only 2 object columns remain. So, what's wrong with the 'Weekly_Sales' column?

12345678
# Loading the library import pandas as pd # Reading the data df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/72be5dde-f3e6-4c40-8881-e1d97ae31287/shops_data1.csv') # Inspecting the 'CPI' column print(df['Weekly_Sales'].sample(5))
copy
question mark

What is wrong with the 'Weekly_Sales' column?

Select the correct answer

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 1

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Awesome!

Completion rate improved to 3.45

bookAnalyzing Columns

Glissez pour afficher le menu

Let's inspect how many object columns are left.

12345678
# Loading the library import pandas as pd # Reading the data df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/72be5dde-f3e6-4c40-8881-e1d97ae31287/shops_data2.csv') # Checking columns types print(df.dtypes)
copy

As you can see, only 2 object columns remain. So, what's wrong with the 'Weekly_Sales' column?

12345678
# Loading the library import pandas as pd # Reading the data df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/72be5dde-f3e6-4c40-8881-e1d97ae31287/shops_data1.csv') # Inspecting the 'CPI' column print(df['Weekly_Sales'].sample(5))
copy
question mark

What is wrong with the 'Weekly_Sales' column?

Select the correct answer

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 1
some-alt