diff --git a/scripts/CSV_to_Excel/README.md b/scripts/CSV_to_Excel/README.md new file mode 100644 index 0000000..cf48e19 --- /dev/null +++ b/scripts/CSV_to_Excel/README.md @@ -0,0 +1,9 @@ +# CSV to EXCEL +This is a simple script that lets you convert CSV files to Excel. + +## Usage + +* 2 packages required pandas and openpyxl +* Use `pip install pandas` and `pip install openpyxl` +* Add path to your csv file and output excel file WITH EXTENSTION `.csv` and `.xlsx` +* Run `python script.py` diff --git a/scripts/CSV_to_Excel/script.py b/scripts/CSV_to_Excel/script.py new file mode 100644 index 0000000..19060c6 --- /dev/null +++ b/scripts/CSV_to_Excel/script.py @@ -0,0 +1,10 @@ +import pandas as pd + +def makeExcel(): + df = pd.read_csv('Path to your CSV file.csv') + # index and header can be set True or False accoring to needs + df.to_excel('Path where save as Excel file.xlsx', index=False, header=True) + print('Converted Successfuly') + +if __name__ == "__main__": + makeExcel() \ No newline at end of file