Workspace
RAFAEL GOMEZ/

Course Notes: Exploratory Data Analysis in Python

0
Beta
Spinner

Course Notes

Use this workspace to take notes, store code snippets, or build your own interactive cheatsheet! For courses that use data, the datasets will be available in the datasets folder.

#agregaciones en dataframes

Take Notes

--books.agg(['mean','std'])' -- books.agg('rating':['mean','std'],year:['median'])

Cuando uso la función df.groupby().agg()

puedo usar las funciones que voy a aplicar a cada nueva columna agregada: df.groupby('tipos').agg( mean_rating=('rating','mean'), std_rating=('rating','std'), median_year=('year','median') )

Add your notes here

# Valores Faltantes

planes.isna().sum(), significa que sumará os valores que faltan en cada columna del dataframe planes

  • AI Chat
  • Code