Closed blueRegen closed 3 years ago
I would do something like this:
import pandas as pd
import pyorc
reader = pyorc.Reader(data)
df = pd.DataFrame(reader)
# picking the first i rows
df = df.iloc[:i, :]
df.to_csv('path_to_file.csv', index=False)
Pandas makes it really easy to save your data to many formats including CSV.
@fehtemam works like a charm.
thank you so much for the help.
Hi
Is there a way to save ORC file contents to CSV? I want to save a_reader to a CSV file.
thanks.