Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
DataFrame populated with the letter "n" when no data passed and dtype is specified as str #9428
Comments
ajcr
changed the title from
DataFrame filled with letter "n" when no data passed and dtype is specified as str to DataFrame populated with the letter "n" when no data passed and dtype is specified as str
Feb 6, 2015
jreback
added the
Bug
label
Feb 6, 2015
jreback
added this to the
0.16.0
milestone
Feb 6, 2015
jreback
added the
Dtypes
label
Feb 6, 2015
jreback
modified the milestone: 0.16.0, Next Major Release
Mar 5, 2015
ajcr
referenced
this issue
Jul 22, 2015
Merged
BUG: GH9428 promote string dtype to object dtype for empty DataFrame #10658
jreback
modified the milestone: 0.17.0, Next Major Release
Jul 23, 2015
|
closed by #10658 |
jreback
closed this
Jul 25, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ajcr commentedFeb 6, 2015
This is discussed on Stack Overflow here.
When constructing a DataFrame with the
dtypeasstrbut not passing in any data (just an index), the resulting DataFrame is filled with the lettern:This is contrary to the behaviour of Series when no data is passed in:
It would be logical for the DataFrame to be populated with
NaNin this instance too.