Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14155

How to print Matrix by comparing two dates

$
0
0

I have an excel sheet and there are two columns which has values in "dd-mm-yyyy hh:mm" format i.e., DEP_DATE_TIME (Column F) and ARR_DATE_TIME (Column J). Row is having the same "dd-mm-yyyy hh:mm" format to compare to. Please view this image for more details

I am comparing Col F1 with Col L1 if its TRUE then it will return 1 and if Col J1 is >= L1 then it will return 0 otherwise 1 and by subtracting these the result is printed in its corresponding cell. Following is the formula for the same -

=IF($F$13<L1,1,0)-IF($J$13>=L1,0,1)

How can I achieve the same using python code such that it should read the sheet and plot the 0 and 1 in the cell?

How can I achieve the same using python code such that it should read the sheet and plot the 0 and 1 in the cell?


Viewing all articles
Browse latest Browse all 14155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>