Skip to content

Commit

Permalink
unformat option improved to unformat headers aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-martin-dev committed Dec 18, 2023
1 parent c858d5c commit 34b4dec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Driveup/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def df_update(self,df:Union[pd.DataFrame, List[pd.DataFrame]],id:str,sheet_name:
if unformat == True:
df = df.fillna('NULL')
df = df.astype(str)
df.columns = df.columns.astype(str)

if sheet_name == None:
sheet_name = sheets[0].get("properties", {}).get("title", "Sheet1")
Expand Down Expand Up @@ -300,5 +301,7 @@ def df_download(self,id:str,sheet_name:str=None,unformat:bool = False):
if unformat == True:
df = df.fillna('NULL')
df = df.astype(str)
df.columns = df.columns.astype(str)


return df

0 comments on commit 34b4dec

Please sign in to comment.