cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

Importar hoja de cálculo de SharePoint a través del script de Python en Power BI

¿Alguien ha escrito correctamente un script de Python ejecutado en Power Bi que reemplaza los pasos de Power Query para importar una hoja de cálculo de SharePoint?

jch_0-1631201893458.png

Ya he probado 2 scripts diferentes

# 'dataset' holds the input data for this script
import pandas as pd
#pd.read_excel('https://orgname.sharepoint.com/teams/MyTeam/Shared Documents/General/Security/Metrics/myspreadsheet.xlsx', sheet_name=[8]) # load ws6

y

# 'dataset' holds the input data for this script
import pandas as pd

# load example
df1 = pd.read_excel('https://orgname.sharepoint.com/teams/MyTeam/Shared Documents/General/Security/Metrics/myspreadsheet.xlsx',
# get sheets 2 through 8; rows 1-2 are the headers
sheet_name=[2, 3, 4, 5, 6, 7, 8], header=[1, 2])

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator
1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors