Skip to content

Commit

Permalink
use parens instead of backward slash
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetjitsu authored and jreback committed Jul 16, 2017
1 parent 8740fd6 commit 0ae525b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def trans(x): # noqa
return result

# don't convert bool to float GH16875
if issubclass(dtype.type, np.floating) and\
not is_bool_dtype(result.dtype):
if (issubclass(dtype.type, np.floating) and
not is_bool_dtype(result.dtype)):
return result.astype(dtype)
elif is_bool_dtype(dtype) or is_integer_dtype(dtype):

Expand Down

0 comments on commit 0ae525b

Please sign in to comment.