Skip to content

Commit

Permalink
Index detection syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpowersys committed Sep 16, 2016
1 parent f967634 commit fc25fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caar/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def temps_arr_by_freq(df, id, start, end, freq='1min', actuals_only=False):
idx = pd.IndexSlice
if len(df.index._levels) == 2:
records = df.loc[idx[id, start:end], :]
elif len(df.index._levesl) == 3:
elif len(df.index._levels) == 3:
records = df.loc[idx[id, :, start:end], :]
time_index = _get_time_level_of_df_multiindex(df)
timestamps = pd.DatetimeIndex(records
Expand Down

0 comments on commit fc25fb2

Please sign in to comment.