Created
February 7, 2021 04:31
-
-
Save ivansaul/606838955fc3ee1db3315767400c42b6 to your computer and use it in GitHub Desktop.
Read Excel file (.xlsx) into pandas data frame from GitLab url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import requests | |
url= 'https://gitlab.com/username/repo/-/raw/master/data.xlsx' | |
myfile = requests.get(url) | |
df=pd.read_excel(myfile.content) | |
print(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
should be substituted withblob
, right?