Answers for "pandas data frame from part of excel"

0

pandas data frame from part of excel

import openpyxl
import pandas as pd

wb = openpyxl.load_workbook('data.xlsx')
sheet = wb.get_sheet_by_name('Sheet2')
range = ['A3':'D20']   #<-- how to specify this?
spots = pd.DataFrame(sheet.range) #what should be the exact syntax for this?

print (spots)
Posted by: Guest on July-14-2021

Code answers related to "pandas data frame from part of excel"

Browse Popular Code Answers by Language