update code to be compatible with pandas update
update code to be compatible with pandas update

aidendoherty/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis,aidendoherty/biobankAccelerometerAnalysis