How to quickly convert multiple csv files into xls files in batches

how to quickly convert multiple csv files into xls files in batches

Mar.06,2021

import pandas as pd

def csv_to_xlsx_pd(csv_pt, encoding='utf-8'):
    csv = pd.read_csv(csv_pt, encoding=encoding)
    csv.to_excel(csv_pt.split('.')[0]+'.xlsx', sheet_name='data')

-sharp TODO  os.listdir

if __name__ == '__main__':
    csv_to_xlsx_pd()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36e29-405d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36e29-405d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?