Skip to content

Commit d3c319b

Browse files
author
Sylvain MARIE
committed
code review: renamed variable
1 parent e05fa01 commit d3c319b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/arrays/period.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -642,17 +642,17 @@ def _format_native_types(
642642
values = self.astype(object)
643643

644644
if date_format:
645-
formatter = lambda p: p.strftime(date_format)
645+
formatter = lambda per: per.strftime(date_format)
646646
else:
647-
formatter = lambda p: str(p)
647+
formatter = lambda per: str(per)
648648

649649
if self._hasna:
650650
mask = self._isnan
651651
values[mask] = na_rep
652652
imask = ~mask
653-
values[imask] = np.array([formatter(p) for p in values[imask]])
653+
values[imask] = np.array([formatter(per) for per in values[imask]])
654654
else:
655-
values = np.array([formatter(p) for p in values])
655+
values = np.array([formatter(per) for per in values])
656656
return values
657657

658658
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)