We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92bc165 commit 4fed1e0Copy full SHA for 4fed1e0
pandas/tools/tests/test_pivot.py
@@ -517,8 +517,11 @@ def test_pivot_datetime_tz(self):
517
exp_col3 = pd.DatetimeIndex(['2013-01-01 15:00:00', '2013-02-01 15:00:00'] * 4,
518
tz='Asia/Tokyo', name='dt2')
519
exp_col = MultiIndex.from_arrays([exp_col1, exp_col2, exp_col3])
520
- expected = DataFrame(np.array([[0, 3, 1, 2, 0, 3, 1, 2], [1, 4, 2, 1, 1, 4, 2, 1],
521
- [2, 5, 1, 2, 2, 5, 1, 2]]), index=exp_idx, columns=exp_col)
+ expected = DataFrame(np.array([[0, 3, 1, 2, 0, 3, 1, 2],
+ [1, 4, 2, 1, 1, 4, 2, 1],
522
+ [2, 5, 1, 2, 2, 5, 1, 2]], dtype='int64'),
523
+ index=exp_idx,
524
+ columns=exp_col)
525
526
result = pivot_table(df, index=['dt1'], columns=['dt2'], values=['value1', 'value2'],
527
aggfunc=[np.sum, np.mean])
0 commit comments