Skip to content

Conversation

@AbelJSanchez
Copy link

Added test_sum_string_dtype_coercion() that checks if the df.sum() method results in in concatenation for numeric strings, and not coercion to dtype int64 or float64.

I wrote three different assertions:

  1. Sum of two DataFrames with "integer" strings
  2. Sum of two DataFrames with "floating point" string
  3. Sum of two DataFrames with both number type strings.

…ngs results in concatenation and not coercion to dtype int64 or float64
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.

BUG: df.sum() of string columns depends on whether or not they can be coerced to numbers

1 participant