Closed daviddavo closed 2 years ago
get_weeknumber_of_date
The .week function of pandas returns the ISO week date instead of the desired gregorian calendar week number.
.week
The gregorian week date can be obtained with strftime, and now get_weeknumber_of_date is more concise.
strftime
fill_empty_with_zeroes
This function was giving me some UserWarnings with latest pandas version. It's because you are using a string and pandas recommends using datetime.
make pt_example
Thanks for the info, all help is welcome
get_weeknumber_of_date
The
.week
function of pandas returns the ISO week date instead of the desired gregorian calendar week number.The gregorian week date can be obtained with
strftime
, and nowget_weeknumber_of_date
is more concise.fill_empty_with_zeroes
This function was giving me some UserWarnings with latest pandas version. It's because you are using a string and pandas recommends using datetime.
make pt_example
that the desired output is the same