Python -How to convert excel to other formats (CSV,JSON and HTML)

preview_player
Показать описание
Python converting excel to other formats like csv ,json and html formats using pandas library
I am attaching csv conversion code here

#Pandas to be the most useful for data science operations
#Convert a Python's list, dictionary or Numpy array to a Pandas data frame.
#Open a local file using Pandas, usually a CSV file, but could also be a delimited text file (like TSV), Excel, etc.
#Handling of data. The Pandas library provides a really fast and efficient way to manage and explore data. ...
#Alignment and indexing. ...
#Handling missing data. ...
#Cleaning up data. ...
#Input and output tools. ...
#Multiple file formats supported. ...
#Merging and joining of datasets. ...
#A lot of time series.
import pandas as pd

#Excel is a Input File Path . csv,Json,html and Sql files are out put .
# output

# Excel sheet name Ex: Sheet1 as 1 and Sheet2 as 2
primaryexcelsheet='Sheet1'


#Reading Excel File from particular excel sheet


# convert excel files into CSV, Json, Html and sql Formats
def format_csv(excel_file_path,csv_file_path):
format_csv(excel_file_path,csv_file_path)
Рекомендации по теме
Комментарии
Автор

This video was very helpful and well explained thanks!

Zranable
Автор

it's very helpful video, thank you very much

magibis
Автор

how to convert bulk xlsx file to csv, can you please give the syntax for it

magibis
Автор

How to convert csv to sql format can you please please please upload a video for that

Please help me

fluentgridnavikaran