Skip to content

KeyError: when using ParameterName='TableName' and ParameterName='Frequency' #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ahakhama opened this issue Oct 10, 2018 · 1 comment

Comments

@ahakhama
Copy link

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')

@Scott-Simmons
Copy link

Same issue as me. When running the following, I get KeyError: 'ParamValue'

NIPA_TableName = pybea.get_parameter_values(USER_ID, DataSetName='NIPA', ParameterName='TableName')
NIPA_TableName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants