Skip to content

BUG/ENH: guarantee blocks will upcast as needed, and split as needed #3065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2013

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Mar 16, 2013

  • replace on an IntBlock with a float will upcast, it may yield multiple blocks if the original IntBlock didn't fully replace
  • small fix in com.mask_missing to guarantee that a bool ndarray is returned even in the case of a string comparison with a numeric array, (which for some reason numpy returns a single, non-ndarray value)

allows #3064 to proceed (e.g. df.replace(0,0.5) will work on an integer dtype)

         e.g. a replace on an IntBlock with a float will upcast, it may
         yield multiple blocks if the original IntBlock didn't fully replace

         small fix in com.mask_missing to guarantee that a bool ndarray is
         returned even in the case of a string comparison with a numeric array
         (which for some reason numpy returns a single, non-ndarray value)

BUG: py3 issue in com._maybe_promote for recognizing string types on number like dtypes!
jreback added a commit that referenced this pull request Mar 16, 2013
BUG/ENH: guarantee blocks will upcast as needed, and split as needed
@jreback jreback merged commit fbfd16a into pandas-dev:master Mar 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant