Skip to content
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

Error in get_project_info() in gdc.py when dataframe is empty #5

Open
arp95 opened this issue Feb 21, 2019 · 0 comments
Open

Error in get_project_info() in gdc.py when dataframe is empty #5

arp95 opened this issue Feb 21, 2019 · 0 comments

Comments

@arp95
Copy link
Contributor

arp95 commented Feb 21, 2019

Hi,

When I run get_project_info(['test']), where the project id is not existing, in that case the get_project_info will have a empty dataframe and hence calling,

return df.set_index('id') results in an error.

To handle this case I have checked the dataframe is empty or not and then returned the dataframe accordingly. Please check the pull request.

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

1 participant