Is there a way in DSWS to get a time series request to automatically return the series name as th...

...e 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

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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.

Answers