Fix approach to dropping column after using it
This commit is contained in:
parent
3dd830bbb3
commit
28550ef3ff
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ timelog['description'] = timelog['description'].str.strip()
|
|||
timelog['tmp_multiplier'] = (np.where(timelog['description'].str.contains('\*\s*\d$'), timelog['description'].str.rsplit('*', 1).str[1].str.strip(), 1))
|
||||
timelog['description'] = (np.where(timelog['description'].str.contains('\*\s*\d$'), timelog['description'].str.rsplit('*', 1).str[0], timelog['description']))
|
||||
timelog["time"] = timelog["time"] * timelog['tmp_multiplier'].astype(int)
|
||||
timelog['tmp_multiplier'].drop()
|
||||
timelog.drop(columns=['tmp_multiplier'], inplace=True)
|
||||
|
||||
# Clean up description again, after it has been sliced and diced.
|
||||
timelog['description'] = timelog['description'].str.strip()
|
||||
|
|
Loading…
Reference in a new issue