alteryx / alteryx/woodwork

Add a Woodwork DataFrame tips and tricks guide

Abierto
#1,311 1 comentario 0 reacciones 0 asignados Ver en GitHub
documentation
Lenguaje dominante
Python
Estrellas
155
Forks
24
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

There are some common woodwork questions that come up with new users, often times surrounding the most efficient way to access typing information. As the structure of how typing info is stored (Table Schema vs Column Schema) and how/when Woodwork initialization happens when getting subsets of data are somewhat opaque, we should provide a guide that helps users understand the best ways to get information from their dataframes.

Ex: Doing `df.ww.columns[col_name].origin` is more efficient than doing `df.ww[col_name].ww.origin`, because it avoids reinitializing woodwork on a new Series. This isn't clear unless you know the specifics of how Woodwork initialization works, so it'd be helpful to explain to users at some point in our documentation that they should do this (even if we dont want to explain why they should)

Ex 2: `df.ww.logical_types` will iterate through all of the columns in your dataframe, so which can be problematic in very wide dataframes if called excessively, so care should be taken to pull out that call from for loops to avoid unnecessary computation.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.