import eikon as ek
import csv ek.set_app_id('ID')
df = ek.get_timeseries([".MERV"], start_date="2000-01-01", end_date="2018-05-18",interval='minute')
writer = csv.writer(open("C:/data/MERV.csv", 'w'))
for row in df: writer.writerow(row)
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
import eikon as ek
import csv ek.set_app_id('ID')
df = ek.get_timeseries([".MERV"], start_date="2000-01-01", end_date="2018-05-18",interval='minute')
writer = csv.writer(open("C:/data/MERV.csv", 'w'))
for row in df: writer.writerow(row)
Pandas dataframe provides method to write dataframe to a csv file. Here's the documentation. And here's the example for your use case.
df.to_csv('C:/data/merv.csv')