Convert text data from requests object to dataframe with pandas

后端 未结 4 950
离开以前
离开以前 2021-02-05 10:31

Using requests I am creating an object which is in .csv format. How can I then write that object to a DataFrame with pandas?

To get the requests object in text format:

4条回答
  •  一整个雨季
    2021-02-05 10:45

    if the url has no authentication then you can directly use read_csv(url)

    if you have authentication you can use request to get it un-pickel and print the csv and make sure the result is CSV and use panda.

    You can directly use importing import csv

提交回复
热议问题