Created
September 16, 2022 13:27
-
-
Save IanCal/a9c2593b677623f90c8fab906b3e9036 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyarrow import csv | |
import pyarrow.parquet as pq | |
table = csv.read_csv("BasicCompanyDataAsOneFile-2022-09-01.csv") | |
sorted_table = table.sort_by([("CompanyName", "ascending")]) | |
pq.write_table(sorted_table, "basic_company_data_sorted.parquet") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment