Skip to content

Commit

Permalink
register flow part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Jan 6, 2025
1 parent a3777be commit dfad87f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pipelines/datasets/br_stf_corte_aberta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ def read_csv():

def fix_columns_data(df):
lista = ["Data de autuação", "Data da decisão", "Data baixa"]
for x in lista:
df[x] = df[x].astype(str)
if len(df[x]) == 1:
df[x] = df[x].replace("-", '')
df[x] = df[x].replace("/", "-").astype(str)
for x in lista:
df[x] = df[x].astype(str)
if len(df[x]) == 1:
df[x] = df[x].replace("-", '')
df[x] = df[x].replace("/", "-").astype(str)
log(df[x].value_counts())
return df


Expand Down

0 comments on commit dfad87f

Please sign in to comment.