Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford committed Jul 10, 2024
1 parent 51beee7 commit 5e0ff94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tsfm_public/toolkit/time_series_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ def _validate_columns(self):

def _get_timedelta_map(
self,
):
) -> Dict[str, str]:
"""Get a mapping that relates timedeltas to frequencies in the frequency map.
Returns:
Dict[str, str]: Dictionary of mappings from timedelta strings to frequency token names.
"""
td_map = {}
for k, v in self.frequency_mapping.items():
if k == "oov":
Expand Down

0 comments on commit 5e0ff94

Please sign in to comment.