-
Notifications
You must be signed in to change notification settings - Fork 47
Fixed ads dataset key error #1152
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
Conversation
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 Lu. I am pretty sure the code that broke was something I wrote long ago :)
"last": desc["last"], | ||
"mode": desc["top"], | ||
"unique percentage": 100 * series.nunique() / series.size, | ||
"first": desc["first"] if "first" in desc else 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.
Why can't we use .get()
?
"first": desc.get("first"),
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.
Wrote this just in case the desc
doesn't have a get
method, but if it always does I can change this to get
Fixed ads dataset key error