alteryx / alteryx/woodwork

Add class to hold collection of DataFrames with relationships

Aperta
#752 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
evalml featuretools needs design spike
Lingua principale
Python
Stelle
155
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### Add class to hold collection of DataFrames with relationships
- Support for relationships between DataFrames, with the class containing the relationship information between the DataTables.
- Support for normalizing column(s) in a DataFrame to create a new DataFrame in the class, with the associated relationship.

#### Initial Thoughts

```python
import pandas as pd
import woodwork as ww

products = pd.read_csv("products.csv")
orders = pd.read_csv("orders.csv")

products.ww.init(name='products')
orders.ww.init(name='orders', make_index=True, index='order_product_id')

ds = ww.DataframeSet(id"transactions")
ds = ds.add_dataframe(dataframe=products)
ds = ds.add_dataframe(dataframe=orders)
ds = ds.add_relationship(dataframe_id="products", column="product_id",
dataframe_id="transactions", column="product_id",
relationship='one_to_many')
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.