Description
I am getting a KeyError when trying to get a TableName / Frequency from pybea.get_parameter_values. Below is an example:
NIPA_TableName = pybea.get_parameter_values(USER_ID, DataSetName='NIPA', ParameterName='TableName')
NIPA_TableName
I get the following error:
KeyError: 'Only a column name can be used for the key in a dtype
mappings argument.'
I get the same error for ParameterName='Frequency' as well.
Though when I create a request for NIPA:
request = pybea.api.ParameterListRequest(USER_ID,
DataSetName='NIPA',
ResultFormat="JSON")
request.parameter_list
I get the following parameters:
ParameterName
Frequency
ShowMillions
TableID
TableName
Year
So, TableName and Frequency are valid parameter names, why do I get an error when I try to call the following?
NIPA_TableName = pybea.get_parameter_values(USER_ID, DataSetName='NIPA', ParameterName='TableName')