Skip to content

Commit

Permalink
remove commented out code that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorin Dawson committed Nov 30, 2023
1 parent d0dbf7f commit a20b258
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions python/tempo/intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,29 +261,6 @@ def make_disjoint(self) -> "IntervalsDF":
local_end_ts = self.end_ts
local_series_ids = self.series_ids

# def make_disjoint_inner(pdf: pd.DataFrame) -> pd.DataFrame:
# """
# function will process all intervals in the input, and break down overlapping intervals into a fully disjoint set
# https://stackoverflow.com/questions/13784192/creating-an-empty-pandas-dataframe-and-then-filling-it
# https://stackoverflow.com/questions/55478191/list-of-series-to-dataframe
# https://pandas.pydata.org/pandas-docs/version/0.21/generated/pandas.DataFrame.append.html
# """
#
# global_disjoint_df = pd.DataFrame(columns=pdf.columns)
#
# sorted_pdf = pdf.sort_values([local_start_ts, local_end_ts])
#
# for _, row in sorted_pdf.iterrows():
# global_disjoint_df = add_as_disjoint(
# row,
# global_disjoint_df,
# (local_start_ts, local_end_ts),
# local_series_ids,
# local_metric_columns,
# )
#
# return global_disjoint_df

disjoint_df = self.df.groupby(self.series_ids).applyInPandas(
func=make_disjoint_wrap(
self.start_ts,
Expand Down

0 comments on commit a20b258

Please sign in to comment.