Da Python Dataframe a JMP Datatable senza csv intermedioSembra che l'interfaccia tra un dataframe Python e un datatable jmp passi attraverso un file csv. È vero?
Per esempio:
Python Init(Path("C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python37.dll"));
Python Submit( "\[import pandas as pd
df = pd.read_parquet('c:/temp/tst.parquet')
]\" );
dt = Python Get(df); // this method is saving the df as csv and then opens it in jmp. Is there a way to do that in memory
dt << New Data View;
Python Term();
Nel codice sopra vedo JMP che apre una barra di avanzamento per leggere un csv durante la chiamata Python Get(df). Questo richiede molto tempo in file di grandi dimensioni.
Vorremmo un modo per importare il data-frame nella data-table senza il tempo di salvare come csv e leggerlo
Accesso ai datiScriptingStatistiche e analisiRe: Da Python Dataframe a JMP Datatable senza csv intermedio - Stato modificato in: ArchiviatoStiamo archiviando questa richiesta. Se questo è ancora importante, commenta con ulteriori dettagli e riapriremo. Grazie!Re: Da Python Dataframe a JMP Datatable senza CSV intermedioGrazie per aver implementato questo desiderio in Jmp 18:)
Re: Da Python Dataframe a JMP Datatable senza CSV intermedio@Sarah-Sylvestre - consegnato?
Re: Conversione da Python Dataframe a JMP Datatable senza CSV intermedio - Stato modificato in: ConsegnatoRe: Da Python Dataframe a JMP Datatable senza CSV intermedio@Sarah-Sylvestre , sembra che il dataframe Python passi ancora attraverso un file CSV per diventare una tabella JMP. Ho capito male?

Re: Da Python Dataframe a JMP Datatable senza CSV intermedioJMP 14-17 Python Send (dt) ha creato una copia della tabella dati come dataframe pandas.
JMP 18_+ crea un oggetto jmp.DataTable che è un riferimento attivo ai dati.
Python Get ( dt ) ottiene un riferimento JSL all'oggetto tabella dati Python.
Python Get (df) crea una tabella dati da un dataframe pandas che è una COPIA dei dati.
JMP 18 - Python Get (df) usa effettivamente CSV per ottenere un DataFrame come JMP DataTable, cosa che è stata lasciata per compatibilità. Dovresti creare un dt dal df in Python e usarlo con Python Get().
JMP 19 aggiunge il supporto al protocollo Portable Dataframe in modo che sia facile creare una JMP DataTable da un dataframe Pandas in memoria senza dover scorrere le colonne e crearne di nuove. dt = jmp.from_dataframe( df )
In JMP 19, Python Get (df) dovrebbe creare una nuova tabella dati che è una COPIA direttamente dal dataframe in memoria. Se per qualsiasi motivo non riesce a convertire automaticamente in memoria, ricorre al CSV invece di fallire.