Skip to content

Commit

Permalink
fix: retirando duplo underline do nome dos métodos de parse
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoPanini committed Feb 16, 2024
1 parent 7262c05 commit 01283c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pynvest/scrappers/fundamentus.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def __init__(
self.metadata_cols_fiis = metadata_cols_fiis

@staticmethod
def __parse_float_cols(df: pd.DataFrame, cols_list: list) -> pd.DataFrame:
def _parse_float_cols(df: pd.DataFrame, cols_list: list) -> pd.DataFrame:
"""
Transforma strings que representam números em objetos do tipo float.
Expand Down Expand Up @@ -357,7 +357,7 @@ def __parse_float_cols(df: pd.DataFrame, cols_list: list) -> pd.DataFrame:
return df

@staticmethod
def __parse_pct_cols(df: pd.DataFrame, cols_list: list) -> pd.DataFrame:
def _parse_pct_cols(df: pd.DataFrame, cols_list: list) -> pd.DataFrame:
"""
Transforma strings que representam percentuais em objetos do tipo float
Expand Down Expand Up @@ -731,13 +731,13 @@ def coleta_indicadores_de_ativo(
]

# Transformando strings que representam números
df_indicadores_ativo_float_prep = self.__parse_float_cols(
df_indicadores_ativo_float_prep = self._parse_float_cols(
df=df_indicadores_ativo,
cols_list=float_cols_to_parse
)

# Transformando percentuais que representam números
df_indicadores_ativo_prep = self.__parse_pct_cols(
df_indicadores_ativo_prep = self._parse_pct_cols(
df=df_indicadores_ativo_float_prep,
cols_list=percent_cols_to_parse
)
Expand Down

0 comments on commit 01283c4

Please sign in to comment.