abrir csv de uma url

mail@pastecode.io avatar
unknown
python
2 years ago
149 B
7
Indexable
Never
#metodo 1
r = requests.get(url)
text = r.iter_lines()
reader = csv.reader(text, delimiter=',')

#metodo 2
import pandas as pd
data = pd.read_csv(url)