Skip to content
Advertisement

find days between 2 dates in python but only number

I was trying to find difference of a series of dates and a date. for example, the series is from may1 to june1 which is

JavaScript

the only thing i could get is this. I don’t want anything other than the number 1-10 cuz i need them for further numerical calculation but i can’t get rid of those. Also how could i construct a time series which just outputs the date not the hms after it? i don’t want to manually .dt.date for all of those and it sometimes mess things up

Advertisement

Answer

You don’t need to create a column base for this, simply do:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement