Skip to content

Instantly share code, notes, and snippets.

View D4Vinci's full-sized avatar
🎯
Making awesome projects

Karim shoair D4Vinci

🎯
Making awesome projects
View GitHub Profile
@D4Vinci
D4Vinci / json_lines2csv.py
Created June 15, 2022 20:01
Using pandas to convert `.json-lines` file to `.csv` fast but using more memory
import pandas
#
## Settings ##
input_file = "13441370_meta.json-lines" # Have to be a .json-lines files
output_file = "All_reviews.csv" # Have to be a .csv file
new_columns = ( # The new file columns
'product_name',
'product_brand',
'product_category',
'product_code',