Skip to content

Commit

Permalink
Изменил множитель при diff_mode, чтобы делались промежутки начиная с …
Browse files Browse the repository at this point in the history
…бОльших временных пропусков.
  • Loading branch information
lotossoks committed Aug 19, 2024
1 parent cb80640 commit 06536ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msu_aerosol/msu_aerosol/graph_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def proc_spaces(df: pd.DataFrame, time_col: str) -> pd.DataFrame:
df = df.sort_values(by=time_col)
# diff_mode - временной промежуток между соседними по времени строками,
# после которого считается, что пробел большой
diff_mode = df[time_col].diff().mode().values[0] * 1.1
diff_mode = df[time_col].diff().mode().values[0] * 1.3
new_rows = []
for i in range(len(df) - 1):
diff = df.loc[i + 1, time_col] - df.loc[i, time_col]
Expand Down

0 comments on commit 06536ce

Please sign in to comment.