Skip to content

Commit 9775742

Browse files
committed
Allow inferred_type = 'empty'
1 parent d193588 commit 9775742

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/strings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,8 +1822,9 @@ def _validate(data):
18221822
'not MultiIndex')
18231823

18241824
# see src/inference.pyx which can contain string values
1825-
allowed_types = ['string', 'unicode', 'mixed', 'mixed-integer']
1826-
if isinstance(data, ABCSeries):
1825+
allowed_types = ['string', 'unicode', 'empty',
1826+
'mixed', 'mixed-integer']
1827+
if isinstance(data, ABCSeries):
18271828
allowed_types = allowed_types + ['bytes']
18281829

18291830
values = data if isinstance(data, Index) else data.values

0 commit comments

Comments
 (0)