Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

convert xls to xlsx python

use "pip install xls2xlsx"
Comment

save to xlsx in python

import pandas as pd
df = pd.read_excel()

>>> df
      User Name Country      City Gender  Age
0  Forrest Gump     USA  New York      M   50
1     Mary Jane  CANADA   Tornoto      F   30
2  Harry Porter      UK    London      M   20
3     Jean Grey   CHINA  Shanghai      F   30


df.to_excel('saved_file.xlsx')
Comment

PREVIOUS NEXT
Code Example
Python :: Converting categorical feature in to numerical features 
Python :: python how to see what pip packages are installed 
Python :: python square a number 
Python :: how to create new header of a dataframe in python 
Python :: python check if list contains value 
Python :: python module install a whl 
Python :: python if 
Python :: represent NaN with pandas in python 
Python :: tkinter button relief options 
Python :: how to select rows with specific values in pandas 
Python :: add list to list python 
Python :: screen.onkey python 
Python :: how to check a phone number is valid in python 
Python :: How To Get Redirection URL In Python 
Python :: xgboost algorithm in python 
Python :: clone keras model 
Python :: how to create background images in tkinter 
Python :: sendgrid send email to multiple recipients python 
Python :: numpy mean 
Python :: tkinter pack grid and place 
Python :: What does hexdigest do in Python? 
Python :: lastindexof python 
Python :: python print n numbers 
Python :: spark df to pandas df 
Python :: python reading csv files from web 
Python :: settings.debug django 
Python :: drop portion of string in dataframe python 
Python :: python jwt 
Python :: binary gap python 
Python :: how to convert tuple into list in python 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =