python - Convert xlsx to parquet -
is possible convert xlsx excel file in parquet without converting in csv ? thing have many excel files each many sheets , don't want convert each sheet in csv , in parquet wonder if there way convert directly excel parquet ? or maybe, there way nifi ? wanted way using python script ` def csv_from_excel():
wb = xlrd.open_workbook('your_workbook.xls') sh = wb.sheet_names() in sh: sh = wb.sheet_by_name(i) your_csv_file = open('your_csv_file.csv', 'wb') wr = csv.writer(your_csv_file, quoting=csv.quote_all) rownum in xrange(sh.nrows): wr.writerow(sh.row_values(rownum)) your_csv_file.close() `
Comments
Post a Comment