Skip to content

DOC/TST: add pd.unique doc-string & buggy return of Categorical #15939

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

Merged
merged 10 commits into from
Apr 9, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

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
TST: fix test on windows
  • Loading branch information
jreback committed Apr 9, 2017
commit c725c7f239233654bc7384c306a8266f7042a9f7
6 changes: 4 additions & 2 deletions pandas/tests/test_algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,12 @@ def test_order_of_appearance(self):
# light testing of guarantee of order of appearance
# these also are the doc-examples
result = pd.unique(Series([2, 1, 3, 3]))
tm.assert_numpy_array_equal(result, np.array([2, 1, 3]))
tm.assert_numpy_array_equal(result,
np.array([2, 1, 3], dtype='int64'))

result = pd.unique(Series([2] + [1] * 5))
tm.assert_numpy_array_equal(result, np.array([2, 1]))
tm.assert_numpy_array_equal(result,
np.array([2, 1], dtype='int64'))

result = pd.unique(Series([Timestamp('20160101'),
Timestamp('20160101')]))
Expand Down