Skip to content

Commit

Permalink
Clarifying suggestion for the future with additional commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
tnixon authored Sep 22, 2023
1 parent f141f48 commit 8157d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tempo/tsdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def __addPrefixToColumns(self, col_list: list[str], prefix: str) -> "TSDF":

# build a column rename map
col_map = {col: "_".join([prefix, col]) for col in col_list}
# In the future (when Spark 3.4+ is standard) we should implement batch rename using:
# df = self.df.withColumnsRenamed(col_map)

# build a list of column expressions to rename columns in a select
Expand Down

0 comments on commit 8157d61

Please sign in to comment.