I would Like to get a count of the number of days for which (VZ) stock return is larger than the stock index return (INX)
I already calculated the return using the pct_change function. Now I want to get the number of days VZ is larger than INX. I don't know how to go about this.
Dates VZ INX
2016-03-21 NaN NaN
2016-03-22 -0.004304 -0.000877
2016-03-23 -0.005638 -0.006386
2016-03-24 0.012285 -0.000378
2016-03-28 -0.002987 0.000545
2016-03-29 0.012172 0.008817
2016-03-30 -0.000185 0.004350
2016-03-31 0.000740 -0.002040
2016-04-01 -0.001294 0.00633
1
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)