Documentation clarification for read/write
tw391819
Posts: 27
in Start Here
In Read CSV (and maybe one or two other places),..
"How Does service.read_file(format='csv') Work?:
The above method call opens the reject_data file and creates a dictionary for each line in the file(besides the first). The top line of reject_data will be the names for all the dictionaries, and all subsequent lines will be values."
This seems wrong, I suspect that there is a dictionary for each Column in the file (not each line), using the stock symbol (or perhaps another attribute) as the key.
I've used dictionaries in C# (and hash tables in Perl) in the same fashion, using stock symbol as the key.
Comments
There is an example of writing to a file in Base Working Strategies.CQ_Basic_Bull_Momentum
The code is
Take a look at pages:
-
service.read_file()
https://app.cloudquant.com/#/glossary/143-
service.write_file()
https://app.cloudquant.com/#/glossary/148Make more sense?
Thank you!