Private
Public Access
1
0

replacing a few ix with loc.iloc

This commit is contained in:
Sander Roosendaal
2019-02-07 10:08:26 +01:00
parent ca6e7746b7
commit 00643f2705
5 changed files with 57 additions and 57 deletions

View File

@@ -103,7 +103,7 @@ def getsinglecp(df):
dfnew = pd.DataFrame({
'time':1000*(df['TimeStamp (sec)']-df.ix[0,'TimeStamp (sec)']),
'time':1000*(df['TimeStamp (sec)']-df.loc[:,'TimeStamp (sec)'].iloc[0]),
'power':df[' Power (watts)']
})