Skip to content

Commit

Permalink
fix impute plot
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed Oct 22, 2021
1 parent d80d8b3 commit 5d1d7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accelerometer/accPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def plotTimeSeries( # noqa: C901
if 'imputed' in data.columns:
labels.append('imputed')
label_colours['imputed'] = '#fafc6f'
data.loc[data['imputed'].astype('bool'), data.columns != 'imputed'] = None
data.loc[data['imputed'], 'acc'] = None
data.loc[data['imputed'], [label for label in labels if label != 'imputed']] = 0

# number of rows to display in figure (all days + legend)
data.index = data.index.tz_localize(None, ambiguous='NaT', nonexistent='NaT') # tz-unaware local time
Expand Down

0 comments on commit 5d1d7c2

Please sign in to comment.