-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Value error aggregate item by item #15083
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
closes GH15082
closes GH15082
closes GH15082
GH15082
a2 = [s, s, datetime.strptime('2016-12-28', "%Y-%m-%d"), 'asdf', 6] | ||
num = np.array([a1, a2]) | ||
columns = ['b', 'c', 'd', 'e', 'f'] | ||
idx = [x for x in xrange(0, len(num))] |
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.
Perhaps try changing this line to idx = range(len(num))
?
@@ -772,6 +772,31 @@ def max_value(group): | |||
'int64': 1}).sort_values() | |||
assert_series_equal(result, expected) | |||
|
|||
def test_groupby_aggregate_item_by_item(self): | |||
def test_df(): |
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.
this should be a much simpler construction of a test data frame
def x(): | ||
df.groupby(["e_idx", "e"])["a"].quantile(what) | ||
self.assertRaisesRegexp(ValueError, | ||
"'SeriesGroupBy' object " |
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.
this is not any more useful
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.
not really sure what you are trying to solve here. This is just changing one error for another, not actually fixing the issue.
Closing this pull request since it does not resolve the issue. |
git diff upstream/master | flake8 --diff