Private
Public Access
1
0

removing obsolete .ix calls to pandas

This commit is contained in:
Sander Roosendaal
2019-02-09 08:52:52 +01:00
parent a5d8dbdf07
commit b88c6e902a
13 changed files with 93 additions and 85 deletions

View File

@@ -58,9 +58,9 @@ def y_axis_range(ydata,miny=0,padding=.1,ultimate=[-1e9,1e9]):
def mkplot(row,title):
df = row.df
t = df.ix[:,' ElapsedTime (sec)']
p = df.ix[:,' Stroke500mPace (sec/500m)']
hr = df.ix[:,' HRCur (bpm)']
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)'])
fig, ax1 = plt.subplots(figsize=(5,4))
@@ -69,7 +69,7 @@ def mkplot(row,title):
ax1.set_xlabel('Time (h:m)')
ax1.set_ylabel('(sec/500)')
yrange = y_axis_range(df.ix[:,' Stroke500mPace (sec/500m)'],
yrange = y_axis_range(df.loc[:,' Stroke500mPace (sec/500m)'],
ultimate = [85,190])
plt.axis([0,end_time,yrange[1],yrange[0]])