Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d2759d5
ENH: gb.is_monotonic_increasing #17015 fix rebase conflicts
No-Stream Oct 31, 2017
4c70dae
ENH: gb.is_monotonic_increasing #17015 fix rebase conflicts
No-Stream Oct 31, 2017
d88acdd
parametrized tests for gb.is_monotonic_increasing/decreasing
No-Stream Sep 8, 2017
53e5a2b
ENH: gb.is_monotonic_increasing, is_monotonic_decreasing #17015
No-Stream Sep 6, 2017
5a30ee4
added tests for gb.is_monotonically_increasing()/decreasing
No-Stream Sep 7, 2017
2e4bb15
parametrized tests for gb.is_monotonic_increasing/decreasing
No-Stream Sep 8, 2017
3122f1f
removed edits to whatsnew 0.21.0
No-Stream Oct 31, 2017
a6d0640
ENH: gb.is_monotonic_increasing #17015 fix rebase conflicts
No-Stream Oct 31, 2017
4ecc479
ENH: gb.is_monotonic_increasing #17015 fix rebase conflicts
No-Stream Oct 31, 2017
ea42697
rebase and cleanup
jreback Nov 1, 2017
ffb6200
DOC: add docstring for MultiIndex.fillna (#18018) (#18269)
ghasemnaddaf Nov 13, 2017
ee9eb01
ENH: gb.is_monotonic_increasing #17015 fix merge/rebase conflicts
No-Stream Nov 14, 2017
ee9fa7e
ENH: gb.is_monotonic_increasing #17015 tests revised and passing
No-Stream Nov 14, 2017
2c3002f
ENH: gb.is_monotonic_increasing #17015 merged to current upstream/master
No-Stream Nov 29, 2017
f24e476
ENH: gb.is_monotonic_increasing #17015 minor fixes for @jreback
No-Stream Dec 11, 2017
d01b62e
ENH: gb.is_monotonic_increasing #17015 rebase to master
No-Stream Dec 12, 2017
db3e6c0
ENH: gb.is_monotonic_increasing #17015 fix changed whatsnew
No-Stream Dec 12, 2017
fb0bc3c
ENH: gb.is_monotonic_increasing #17015 fix 22.0 whatsnew
No-Stream Dec 12, 2017
e5a90fa
NH: gb.is_monotonic_increasing #17015 alternate version to remove fun…
No-Stream Dec 15, 2017
1a15209
ENH: gb.is_monotonic_increasing #17015 rebase to master
No-Stream Dec 15, 2017
3c13163
Merge branch 'master' into PR_TOOL_MERGE_PR_17453
jreback Jan 5, 2018
d747d35
fixup whatsnew
jreback Jan 5, 2018
dd9a7fc
Resolve v0.23.0.txt merge conflict
gfyoung Feb 11, 2018
495718c
Merge branch 'master' into is-monotonic-increasing-gb-method
gfyoung Feb 11, 2018
02d4369
typo
jorisvandenbossche Feb 11, 2018
13d4dd9
Add ticks for function rendering
gfyoung Feb 12, 2018
787c436
Make whatsnew statement more concise
gfyoung Feb 12, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ENH: gb.is_monotonic_increasing #17015 tests revised and passing
  • Loading branch information
No-Stream committed Nov 14, 2017
commit ee9fa7efbd5d3e05ae6ff2e9adc709773bca0f95
9 changes: 5 additions & 4 deletions pandas/tests/groupby/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -2610,9 +2610,9 @@ def test_is_monotonic_increasing(self, in_vals, out_vals):
'B': ['a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'c', 'd', 'd'],
'C': in_vals}
df = pd.DataFrame(source_dict)
result = df.groupby(['B']).C.is_monotonic_increasing()
expected = pd.Series(index=list('abcd'), name='B')

result = df.groupby('B').C.is_monotonic_increasing()
expected = pd.Series(index=list('abcd'), data=out_vals, name='C')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can construct the index=Index(list('abcd'), name='B')

expected.index.name = 'B'
tm.assert_series_equal(result, expected)

# Also check result equal to manually taking x.is_monotonic_increasing.
Expand Down Expand Up @@ -2641,7 +2641,8 @@ def test_is_monotonic_decreasing(self, in_vals, out_vals):

df = pd.DataFrame(source_dict)
result = df.groupby('B').C.is_monotonic_decreasing()
expected = pd.Series(index=list('abcd'), name='B')
expected = pd.Series(index=list('abcd'), data=out_vals, name='C')
expected.index.name = 'B'
tm.assert_series_equal(result, expected)

def test_apply_numeric_coercion_when_datetime(self):
Expand Down