Skip to content

Commit 1a1baa2

Browse files
author
Sumanau Sareen
committed
1. Fix bug where list like object not returning empty Index.
2. Edit v0.25.0.rst to update changelog.
1 parent 0f3e8e8 commit 1a1baa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,7 @@ def _ensure_valid_index(self, value):
34023402
passed value.
34033403
"""
34043404
# GH5632, make sure that we are a Series convertible
3405-
if not len(self.index) and is_list_like(value):
3405+
if not len(self.index) and len(value) and is_list_like(value):
34063406
try:
34073407
value = Series(value)
34083408
except (ValueError, NotImplementedError, TypeError):

0 commit comments

Comments
 (0)