For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
22 2 3 7

Data within eikon in python to CSV file.

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)

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonapidatacsv
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

I need save the data in CSV file HELPPPPPPPP PLEASE

1 Answer

Upvotes
Accepted
39.2k 75 11 27

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')
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea