Skip to content

Commit 889f81a

Browse files
committed
TST/CLN: Add issue reference in test and update whatsnew for GH#61443
1 parent 9687457 commit 889f81a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ Other
904904
- Bug in ``Series.list`` methods not preserving the original name. (:issue:`60522`)
905905
- Bug in printing a :class:`DataFrame` with a :class:`DataFrame` stored in :attr:`DataFrame.attrs` raised a ``ValueError`` (:issue:`60455`)
906906
- Bug in printing a :class:`Series` with a :class:`DataFrame` stored in :attr:`Series.attrs` raised a ``ValueError`` (:issue:`60568`)
907+
- Fixed bug where the :class:`DataFrame` constructor misclassified array-like objects with a ``.name`` attribute as :class:`Series` or :class:`Index` (:issue:`61443`)
907908
- Fixed regression in :meth:`DataFrame.from_records` not initializing subclasses properly (:issue:`57008`)
908909

909910
.. ***DO NOT USE THIS SECTION***

pandas/tests/frame/test_constructors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,6 +2781,7 @@ def test_construction_nan_value_timedelta64_dtype(self):
27812781
tm.assert_frame_equal(result, expected)
27822782

27832783
def test_dataframe_from_array_like_with_name_attribute(self):
2784+
# GH#61443
27842785
class DummyArray(np.ndarray):
27852786
def __new__(cls, input_array):
27862787
obj = np.asarray(input_array).view(cls)

0 commit comments

Comments
 (0)