Skip to content

Commit

Permalink
✨ Added tab as sep to to_csv
Browse files Browse the repository at this point in the history
  • Loading branch information
m-paz committed Aug 6, 2021
1 parent 8d76122 commit ec147bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viadot/flows/adls_gen1_to_azure_sql_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

@task
def df_to_csv_task(df: pd.DataFrame, path: str, sep: str) -> None:
df.to_csv(path, index=False, sep=sep)
df.to_csv(path, index=False, sep="\t")


@task
def df_replace_special_chars(df: pd.DataFrame) -> None:
df = df.replace(r"\n", "", regex=True)
df = df.replace(r"\n|\t", "", regex=True)
return df


Expand Down

0 comments on commit ec147bc

Please sign in to comment.