Fixed Period and PeriodIndex formatting by smarie · Pull Request #46361 · pandas-dev/pandas (original) (raw)

This clarification comes from the fact that on one side we refer to python strftime doc (just above this text), while in the example (line 1623 below) the %r directive is used !

I checked: neither %r or %R are in the official python doc for strftime, and they are not as well in the extended directives that we support in Period.strftime. But... they work. So this needs explicit clarification I think.