I am new to python and was trying my hand at something. I am trying to load a google sheet using python and for that I'm using pygsheets.
But whenever I try to load a sheet into a dataframe of Pandas, it's throwing an error: Segmentation Fault (core dumped)
I tried googling many things. It said that this is mostly due to out of memory (RAM) error. But haven't found a way to resolve this.
gc = pygsheets.authorize(service_file = 'config file name')
work_sheet = gc.open('google_sheet_name')
sheet=work_sheet.worksheet_by_title(service)
all_records = sheet.get_all_records() // this works fine. when I print all_records, I get the desired result.
df = sheet.get_as_df() // throws Segmentation fault.