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 reduction.pyx
  • Loading branch information
MomIsBestFriend committed Nov 10, 2019
commit b09066b057c17551c28ed95f7891befb8be8dffc
3 changes: 1 addition & 2 deletions pandas/_libs/reduction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ cdef class Reducer:
if dummy.dtype != self.arr.dtype:
raise ValueError('Dummy array must be same dtype')
if len(dummy) != self.chunksize:
raise ValueError('Dummy array must be length {length}'
.format(length=self.chunksize))
raise ValueError(f'Dummy array must be length {self.chunksize}')

return dummy, typ, index, ityp

Expand Down
0