Skip to content

Commit

Permalink
🐛 Added casting to string in Designação_Emissão before processing
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldokun committed Feb 19, 2024
1 parent 2fa4d26 commit 8447a1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extracao/datasources/mosaico.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def split_designacao(
"""Parse a bandwidth string
It returns the numerical component and a character class
"""
df['Designação_Emissão'] = df['Designação_Emissão'].astype('string', copy=False)
df['Designação_Emissão'] = (
df['Designação_Emissão'].str.replace(',', ' ').str.strip().str.upper().str.split(' ')
)
Expand Down

0 comments on commit 8447a1d

Please sign in to comment.