diff --git a/rowers/plots.py b/rowers/plots.py index 80786739..7760346c 100644 --- a/rowers/plots.py +++ b/rowers/plots.py @@ -61,7 +61,7 @@ def mkplot(row,title): t = df.loc[:,' ElapsedTime (sec)'] p = df.loc[:,' Stroke500mPace (sec/500m)'] hr = df.loc[:,' HRCur (bpm)'] - end_time = int(df.ix[df.shape[0]-1,'TimeStamp (sec)']) + end_time = int(df.loc[:,'TimeStamp (sec)'].iloc[df.shape[0]-1]) fig, ax1 = plt.subplots(figsize=(5,4)) diff --git a/rowers/tests/test_user.py b/rowers/tests/test_user.py index 9c1e0f4c..d5c05f70 100644 --- a/rowers/tests/test_user.py +++ b/rowers/tests/test_user.py @@ -26,7 +26,7 @@ class UserMiddleWareTest(TestCase): row = rdata(filename,rower=rr) totaldist = row.df['cum_dist'].max() totaltime = row.df['TimeStamp (sec)'].max()-row.df['TimeStamp (sec)'].min() - totaltime = totaltime+row.df.ix[0,' ElapsedTime (sec)'] + totaltime = totaltime+row.df.loc[:,' ElapsedTime (sec)'].iloc[0] hours = int(totaltime/3600.) diff --git a/rowers/tests/testdata/testdata.csv.gz b/rowers/tests/testdata/testdata.csv.gz index 6e683717..3d9863b7 100644 Binary files a/rowers/tests/testdata/testdata.csv.gz and b/rowers/tests/testdata/testdata.csv.gz differ