Skip to content

Commit a8c098d

Browse files
Unit Test and whatsnew
1 parent 742aa3b commit a8c098d

File tree

2 files changed

+101
-1
lines changed

2 files changed

+101
-1
lines changed

doc/source/whatsnew/v0.23.1.txt

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
.. _whatsnew_0231:
2+
3+
v0.23.1
4+
-------
5+
6+
This is a minor bug-fix release in the 0.23.x series and includes some small regression fixes
7+
and bug fixes. We recommend that all users upgrade to this version.
8+
9+
.. contents:: What's new in v0.23.1
10+
:local:
11+
:backlinks: none
12+
13+
.. _whatsnew_0231.enhancements:
14+
15+
New features
16+
~~~~~~~~~~~~
17+
18+
19+
.. _whatsnew_0231.deprecations:
20+
21+
Deprecations
22+
~~~~~~~~~~~~
23+
24+
-
25+
-
26+
27+
.. _whatsnew_0231.performance:
28+
29+
Performance Improvements
30+
~~~~~~~~~~~~~~~~~~~~~~~~
31+
32+
- Improved performance of :meth:`CategoricalIndex.is_monotonic_increasing`, :meth:`CategoricalIndex.is_monotonic_decreasing` and :meth:`CategoricalIndex.is_monotonic` (:issue:`21025`)
33+
-
34+
-
35+
36+
Documentation Changes
37+
~~~~~~~~~~~~~~~~~~~~~
38+
39+
-
40+
-
41+
42+
.. _whatsnew_0231.bug_fixes:
43+
44+
Bug Fixes
45+
~~~~~~~~~
46+
47+
Groupby/Resample/Rolling
48+
^^^^^^^^^^^^^^^^^^^^^^^^
49+
50+
- Bug in :func:`DataFrame.agg` where applying multiple aggregation functions to a :class:`DataFrame` with duplicated column names would cause a stack overflow (:issue:`21063`)
51+
52+
Strings
53+
^^^^^^^
54+
55+
- Bug in :meth:`Series.str.replace()` where the method throws `TypeError` on Python 3.5.2 (:issue: `21078`)
56+
-
57+
58+
Conversion
59+
^^^^^^^^^^
60+
61+
-
62+
-
63+
64+
Indexing
65+
^^^^^^^^
66+
67+
-
68+
-
69+
70+
I/O
71+
^^^
72+
73+
-Bug in :func:`DataFrame.to_clipboard` where data sent to clipboard was not properly tab-delimited even when ``excel=True`` (:issue:`21104`)
74+
-
75+
76+
Plotting
77+
^^^^^^^^
78+
79+
-
80+
-
81+
82+
Reshaping
83+
^^^^^^^^^
84+
85+
-
86+
-
87+
88+
Categorical
89+
^^^^^^^^^^^
90+
91+
-

pandas/tests/io/test_clipboard.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pandas.util import testing as tm
1313
from pandas.util.testing import makeCustomDataframe as mkdf
1414
from pandas.io.clipboard.exceptions import PyperclipException
15-
from pandas.io.clipboard import clipboard_set
15+
from pandas.io.clipboard import clipboard_set, clipboard_get
1616

1717

1818
try:
@@ -81,6 +81,7 @@ def test_round_trip_frame_sep(self):
8181
self.check_round_trip_frame(dt, sep=',')
8282
self.check_round_trip_frame(dt, sep=r'\s+')
8383
self.check_round_trip_frame(dt, sep='|')
84+
self.check_round_trip_frame(dt, sep='\t')
8485

8586
def test_round_trip_frame_string(self):
8687
for dt in self.data_types:
@@ -123,6 +124,14 @@ def test_read_clipboard_infer_excel(self):
123124
exp = pd.read_clipboard(**clip_kwargs)
124125

125126
tm.assert_frame_equal(res, exp)
127+
def test_excel_clipboard_format(self):
128+
for dt in self.data_types:
129+
for sep in ['\t',None]:
130+
data = self.data[dt]
131+
data.to_clipboard(excel=True, sep=sep)
132+
result = read_clipboard(sep='\t', index_col=0)
133+
tm.assert_frame_equal(data, result, check_dtype=False)
134+
assert clipboard_get().count('\t') > 0
126135

127136
def test_invalid_encoding(self):
128137
# test case for testing invalid encoding

0 commit comments

Comments
 (0)