question

Upvotes
Accepted
28 1 1 1

Is there a way in DSWS to get a time series request to automatically return the series name as the column header?

In DSWS a time series request will return the series code as the column header. Is there a way to automatically return the series name (similar to retName=True for datatypes)?

Below is an example of my request.

ds.get_data (tickers='SPXPDFU.F, SPXPDFUYR', fields=['X'], start='2000-01-01', end='2049-01-01', freq='Q')

Thanks in advance,

Alison

datastream-apidsws-api
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.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@Alison.Quick

The library can't replace the column names.

However, you can rename the column name by using Python code. For more information, please refer to the answers in the thread.

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.

Thank you so much, very helpful!

Click below to post an Idea Post Idea