Contenido del Curso
Analyzing and Visualizing Real-World Data
Analyzing and Visualizing Real-World Data
Checking Columns
Let's take a look at the intermediate results.
# 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') # Checking columns types print(df.dtypes)
So far, there are three columns left that have an object
data type. Let's examine the 'CPI'
column by displaying five random values.
# 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['CPI'].sample(5))
¡Gracias por tus comentarios!