こんにちは、
JMP 18 が Python をサポートするようになりましたが、最初に CSV ファイルに変換せずに、JMP テーブルを Apache Parquet ファイル形式に直接変換するにはどうすればよいですか?
JMP18
私は parquet 形式に詳しくありませんが、このサイトではPython から parquet ファイルを書き込む方法が説明されています。
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
weather_schema = pa.schema([
('city', pa.string()),
('measurement_time', pa.timestamp('ms')),
('temperature', pa.float32()),
('atmospheric_pressure', pa.float32())
])
# Create a Pandas data frame with some sample weather data
df = pd.DataFrame({
'city': ['New York', 'London', 'Tokyo'],
'measurement_time': ['2022-05-01 12:00:00', '2022-05-01 12:00:00', '2022-05-01 12:00:00'],
'temperature': [20.5, 15.2, 23.1],
'atmospheric_pressure': [101.5, 99.2, 100.1]
})
# Convert the Pandas DataFrame to a PyArrow table
table = pa.Table.from_pandas(df, schema=weather_schema)
# Write the PyArrow table to a Parquet file
pq.write_table(table, 'test/weather_data.parquet')
https://saturncloud.io/blog/how-to-write-data-to-parquet-with-python/
JMP での Parquet ファイルのサポートについては、先週の JMP18 トレーニングで説明しました。
はい、具体的には Python 経由です。JMP 18 の Python 統合の価値の例として、Parquet ファイルのデータ インポートについて説明しました。
わかりました。ただし、JMP 18 から JMP ファイルを Parquet ファイル形式に直接エクスポートすることについて質問しています。
JMP データ テーブルを Parquet にエクスポートするには、上記の例と同様の Python を使用する必要があります。JMP 自体は Parquet をサポートしていません。