I just started using Python and i am trying to understand the process of data manipulations here in python.
I use the following piece of code to fetch my required data.
cert = r"cacert.pem"
os.environ["REQUESTS_CA_BUNDLE"] = cert
kerberos = HTTPKerberosAuth(mutual_authentication=OPTIONAL)
session = requests.Session()
link = 'file.txt'
data=session.get(link,auth=kerberos,verify=False).content.decode("latin-1")
Since the data source needs to be authorised, this is essentially the only way I can extract data.
The variable data is basically a txt file. How can I convert this to a dataframe or any useful data structure for further analysis..