API CHANGE: add `to_dataframe` to each table
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia esaminando l’API proposta in questa issue e il lavoro precedente nella pull request 124. Confronta le interfacce richieste a livello di tabella to_dataframe(), raw json(), rows() e l’interfaccia opzionale to_dataframes(), e considera i compromessi dichiarati tra memoria e parsing; il lavoro è completo quando l’API concordata è implementata per ogni tabella.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After investing work in https://github.com/Azure/azure-kusto-python/pull/124,
and some internal discussions, we agreed to wait with this PR and reconsider changing the API to give better performance for both vanilla python and pandas use cases, and save some difficult trickery to allow parsing kusto type to dataframe:
Final api would look like
# result is of type KustoResultDataSet
result = client.execute(db, query)
# raw json
result.tables[0].json()
# iterator with lazy parsing of json
result.tables[0].rows()
# dataframe parsing from raw json
result.tables[0].to_dataframe()
This will cause some memory pressure, so a best practice would probably be:
# either explicitly access a specific table and drop the reference after conversion
df = client.execute(db, query).primary_results[0].to_dataframe()
# or, parse it all
dfs = client.execute(db, query).to_dataframes()
Feel free to add your thoughts, code will be implemented in next couple of weeks.
- Lingua principale
- Python
- Stelle
- 204
- Fork
- 119
- Merge medio
- 2h 8m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azure-kusto-python
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Azure/azure-kusto-python#652 ·
-
When query against Log Analytics workspaces, dynamic are not converted to listForse di nuovo libera @yogilad l’ha presa 1138 giorni fa e non c’è nessuna pull request aperta. Aperta
Azure/azure-kusto-python#491 · 2 commenti · 1 assegnatario ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Azure/azure-kusto-python#470 · 5 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Azure/azure-kusto-python#424 · 4 commenti ·
-
Discussion enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Azure/azure-kusto-python#191 · 3 commenti · 2 reazioni ·
Tutte le issue di Azure/azure-kusto-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
huggingface/sentence-transformers#4186 ·
I maintainer di solito rispondono entro 5 giorni
-
documentation good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
sujithputta02/Esapay#13 ·
-
bot-triaged module: correctness (silent) module: mps module: NaNs and Infs triage review
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
README: CI link/badge checkAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
SCIInstitute/SCIRun#2842 ·
I maintainer di solito rispondono entro 3 giorni