On 18/07/16 15:10, Umed Saidov wrote:
> No. nothing clever I am afraid. I wanted to create a variable to store
> data in pandas format. This seemed like a good way of doing it... but
> perhaps not.
>>> #open a cvs file with 100+ stock tickers from S&P500. Save in a
>>> dataframe 'ticker'.
>>> ti
On 07/18/2016 06:35 AM, Alan Gauld via Tutor wrote:
Caveat: I'm not a Pandas expert but... This looks odd. You first
assign an empty list to ticker and pass that into pandas.DataFrame
then assign the result back to ticker. Is that what you intended? Why
not just ticker = pd.DataFrame([]) Or i
On 18/07/16 03:00, Umed Saidov wrote:
> import urllib.request, json
> import csv
> import pandas as pd
> import itertools
>
> ticker = []
> ticker = pd.DataFrame(ticker)
Caveat: I'm not a Pandas expert but...
This looks odd. You first assign an empty list to ticker and pass that
into pandas.Data
Umed Saidov wrote:
> Hello Tutor(s),
>
> I want to create a loop that loops through a web address, changing only
> a part of that address with each loop. I can't seem to be able to get
> the code to do this. Below is the code with some explanation of what I
> am trying to do. The code seems to lo
Hello Tutor(s),
I want to create a loop that loops through a web address, changing only
a part of that address with each loop. I can't seem to be able to get
the code to do this. Below is the code with some explanation of what I
am trying to do. The code seems to loop through the ticker symbol