removing obsolete .ix calls to pandas
This commit is contained in:
@@ -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]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user