안녕,
이제 JMP 18은 Python을 지원합니다. JMP 테이블을 먼저 CSV 파일로 변환할 필요 없이 어떻게 직접 Apache Parquet 파일 형식으로 변환할 수 있습니까?
JMP18
나는 쪽모이 세공 형식에 익숙하지 않지만 이 사이트에서는 Python에서 쪽모이 세공 파일을 작성하는 방법을 보여줍니다.
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를 지원하지 않습니다.