Sha256: a8715dfc26d7559c6e16d4414bdeddb6de445a2992052c5e4166ddb8313366fb
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
#!/usr/bin/env python import sys sys.path.append("/home/kou/work/cpp/arrow/python") import pandas as pd import numpy as np import pyarrow as A df = pd.DataFrame({'foo': [1.5, 3.0]}) batch = A.RecordBatch.from_pandas(df) sink = A.io.OSFile("/tmp/xxx", "w") writer = A.ipc.FileWriter(sink, batch.schema) writer.write_batch(batch) writer.close()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabbit-slide-kou-nagoya-rubykaigi-03-2017.2.11.0 | examples/write.py |