Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

import excel python

import pandas as pd

df = pd.read_excel(r'Path where the Excel file is storedFile name.xlsx', 
                   sheet_name='your Excel sheet name')
print(df)
Comment

Import Excel

import pandas as pd
  
df = pd.read_excel("sample.xlsx")
print(df)
Comment

PREVIOUS NEXT
Code Example
Python :: how to extract values from a dictionary 
Python :: date to timestamp python 
Python :: list comprehension with square numbers python 
Python :: name columns pandas 
Python :: How determine if a number is even or odd using Modulo Operator 
Python :: multiple logger instances populating single log python 
Python :: to get the number of unique values for each column 
Python :: django pk 
Python :: how to mention a role discord.py 
Python :: split a pd dataframe 
Python :: python format new 
Python :: ** in python 
Python :: python in kali linux 
Python :: how to get one record in django 
Python :: defining function in python 
Python :: eval in python 
Python :: python check if false in dict 
Python :: geckodriver seleniunm setup 
Python :: python cartesian coordinates code 
Python :: django admin.py date format 
Python :: best python books python 3 
Python :: django model choice field from another model 
Python :: pandas remove multi header from dataframe 
Python :: #index operator in python 
Python :: python repr vs str 
Python :: how to print a message in python 
Python :: remove all consecutive duplicates from the string 
Python :: next day in python 
Python :: django annotate 
Python :: how to form .cleaned data in class based views in django 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =