Skip to content

Commit 2758257

Browse files
committed
Fix linting issues
1 parent 3b6f179 commit 2758257

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/_libs/tslibs/strptime.pyx

+5-5
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ cdef _calc_julian_from_U_or_W(int year, int week_of_year,
641641
:param year: the year
642642
:param week_of_year: week taken from format U or W
643643
:param day_of_week: weekday
644-
:param week_starts_Mon: represent whether the week of the year
644+
:param week_starts_Mon: represent whether the week of the year
645645
assumes the week starts on Sunday or Monday (6 or 0)
646646
:returns: converted julian day.
647647
:rtype: int
@@ -672,17 +672,17 @@ cdef _calc_julian_from_V(int iso_year, int iso_week, int iso_weekday):
672672
"""Calculate the Julian day based on the ISO 8601 year, week, and weekday.
673673
ISO weeks start on Mondays, with week 01 being the week containing 4 Jan.
674674
ISO week days range from 1 (Monday) to 7 (Sunday).
675-
675+
676676
:param iso_year: the year taken from format %G
677677
:param iso_week: the week taken from format %V
678678
:param iso_weekday: weekday taken from format %u
679-
:returns: the passed in year and the Gregorian ordinal date / julian date system
680-
:rtype: (int, int)
679+
:returns: the iso year and the Gregorian ordinal date / julian date
680+
:rtype: (int, int)
681681
"""
682682

683683
cdef:
684684
int correction, ordinal
685-
685+
686686
correction = datetime_date(iso_year, 1, 4).isoweekday() + 3
687687
ordinal = (iso_week * 7) + iso_weekday - correction
688688
# ordinal may be negative or 0 now, which means the date is in the previous

0 commit comments

Comments
 (0)