BUG: invalid dtype conversion when setting string column #7704

Closed
jreback opened this Issue Jul 9, 2014 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

jreback commented Jul 9, 2014

http://stackoverflow.com/questions/24650117/how-can-i-select-all-dataframe-rows-that-are-within-a-certain-distance-of-a-give/24653406#24653406

In [32]: df = pd.DataFrame(np.random.rand(30, 3), columns=tuple('ABC'))

In [33]: df['event'] = np.nan

In [34]: df.dtypes
Out[34]: 
A        float64
B        float64
C        float64
event    float64
dtype: object

In [35]: df.loc[10,'event'] = 'foo'

In [37]: df.dtypes
Out[37]: 
A        object
B        object
C        object
event    object
dtype: object

jreback added this to the 0.15.0 milestone Jul 9, 2014

@jreback jreback added Bug Dtypes labels Jul 9, 2014

@jreback jreback modified the milestone: 0.15.1, 0.15.0 Sep 8, 2014

jreback closed this in #8322 Sep 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment