14 lines
337 B
Python
14 lines
337 B
Python
#!/usr/bin/env python
|
|
import pandas
|
|
import pyarrow
|
|
import pyarrow.parquet
|
|
|
|
df = pandas.DataFrame({
|
|
'value': [1.1, 2.2, 3.3],
|
|
'timestamp': [
|
|
"2024-03-15T14:05:06+00:00", "2024-03-16T14:05:06+00:00",
|
|
"2024-03-17T14:05:06+00:00",
|
|
]
|
|
})
|
|
|
|
pyarrow.parquet.write_table(pyarrow.Table.from_pandas(df), "input.parquet")
|