Skip to content

Commit

Permalink
Merge pull request #38 from TomBurdge/fix/remove_extra_workflow
Browse files Browse the repository at this point in the history
docs: add docstring for snake case
  • Loading branch information
TomBurdge authored Aug 26, 2024
2 parents 0a1e8f6 + ffade85 commit a24883e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions harley/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@


def snake_case_column_names(df: PolarsFrame) -> PolarsFrame:
"""
Takes a PolarsFrame, converts its column names to snake case,
and returns the modified PolarsFrame.
:param df: A PolarsFrame object, which can be eith er a LazyFrame or DataFrame.
:type df: PolarsFrame
:return: The function `snake_case_column_names` is returning a PolarsFrame with column names
converted to snake case.
"""
if isinstance(df, LazyFrame):
all_column_names = df.collect_schema().names()
else:
Expand Down

0 comments on commit a24883e

Please sign in to comment.