Skip to content

Commit

Permalink
data_obj
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Sep 22, 2023
1 parent e939416 commit 685784f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipelines/datasets/br_stf_corte_aberta/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from prefect import task
import os
import pandas as pd
from datetime import datetime
from datetime import timedelta
from pipelines.datasets.br_stf_corte_aberta.utils import (
web_scrapping,
Expand Down Expand Up @@ -38,6 +39,7 @@ def check_for_data():
+ df["Data da decisão"].astype(str).str[0:2]
)
data_obj = data_obj.max()
data_obj = datetime.strptime(data_obj, "%Y-%m-%d").date()

return data_obj

Expand Down

0 comments on commit 685784f

Please sign in to comment.