TypeError: list indices must be integers or slices, not tuple


#1

Hi,

I’m getting a TypeError: list indices must be integers or slices, not tuple on the following section of code:

[python]df_Germany, err = tr.get_data(['ALVG.DE','SIEGn.DE','BAYGn.DE','DBKGn.DE','DAIGn.DE','SAPG.DE']
                      ['TR.AcquisitionType','TR.AdjSharesTraded','TR.AsRepSharesTraded','TR.TransactionDate'],
                      {'Scale': 6, 'SDate': -1000, 'EDate': 0, 'FRQ': 'D', 'Curn': 'USD'})
df_Germany[/python]

Console is telling me the error is in the 2nd line, but i’m stumped. Any help would be appreciated.
Thanks


#2

Looks like a missing comma separator?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.