this is coding
import pandas as pd
import gzip
def parse(path):
g = gzip.open(path, 'rb')
for l in g:
yield eval(l)
def getDF(path):
i = 0
df = {}
for d in parse(path):
df[i] = d
i += 1
return pd.DataFrame.from_dict(df, orient='index')
df = getDF('reviews_books_5.json.gz')
i am running this code in anaconda in i3processor 4gb ram,6ht gen, itb
harddisk. after run the code below , it is idle..... for long time.... while i opening that text file for analysis in notepad or textpad or
word it says file size is too large, so it will hang my system.
kindly help me for further process...
Thanks and regards
S.Madhusudhanan,