-
Notifications
You must be signed in to change notification settings - Fork 664
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
feat: Add data commons toolkit #979
base: master
Are you sure you want to change the base?
Conversation
… into toolkit/datacommons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dxmaptin 's contribution! docstring and type hint can be further polished, overall looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems this file need to be cleaned
from typing import Any, Dict, List, Optional, Union | ||
|
||
import datacommons | ||
import datacommons_pandas as dc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the abbreviation makes it not so easy to be understood, how about use the original name?
""" | ||
|
||
@staticmethod | ||
def query_data_commons(query_string, select_function=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing type hint for argument and output
list: A list of dictionaries, each representing a node matching the | ||
query conditions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstring format need to be aligned with above
return {} | ||
|
||
@staticmethod | ||
def get_property_labels(dcids, out=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing type hint
Description
Integrate DataCommons
Motivation and Context
close #935
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Implemented Tasks
Checklist
Go over all the following points, and put an
x
in all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!