8000 CLN: F-string formatting in pandas/_libs/*.pyx by ShaharNaveh · Pull Request #29527 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: F-string formatting in pandas/_libs/*.pyx #29527

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 16 commits into from
Nov 11, 2019
Prev Previous commit
Next Next commit
Finished ops.pyx
  • Loading branch information
MomIsBestFriend committed Nov 10, 2019
commit 6fc5aca0bcd94ca7731363f5dd064585f5379c6f
6 changes: 2 additions & 4 deletions pandas/_libs/ops.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def vec_compare(object[:] left, object[:] right, object op):
int flag

if n != <Py_ssize_t>len(right):
raise ValueError('Arrays were different lengths: {n} vs {nright}'
.format(n=n, nright=len(right)))
raise ValueError(f'Arrays were different lengths: {n} vs {len(right)}')

if op is operator.lt:
flag = Py_LT
Expand Down Expand Up @@ -224,8 +223,7 @@ def vec_binop(object[:] left, object[:] right, object op):
object[:] result

if n != <Py_ssize_t>len(right):
raise ValueError('Arrays were different lengths: {n} vs {nright}'
.format(n=n, nright=len(right)))
raise ValueError(f'Arrays were different lengths: {n} vs {len(right)}')

result = np.empty(n, dtype=object)

Expand Down
0