Skip to content

Commit

Permalink
Simplify tigramite helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
teobucci committed Mar 25, 2024
1 parent ac80116 commit 7c21f22
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hawk/analysis/pcmci_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def initialize_tigramite_df(df: pd.DataFrame):
:return: tigramite dataframe and variable names tuple
"""

var_names = df.columns
dataframe = pp.DataFrame(
df.values,
datatime={0: np.arange(len(df))},
var_names=df.columns,
)

dataframe = pp.DataFrame(df.values, datatime={0: np.arange(len(df))}, var_names=var_names)

return dataframe, var_names
return dataframe

0 comments on commit 7c21f22

Please sign in to comment.