Skip to content

Commit

Permalink
🐛 Casting to string again after exploding the column `Designação_Emis…
Browse files Browse the repository at this point in the history
…são`
  • Loading branch information
Ronaldo S.A. Batista committed Feb 19, 2024
1 parent b6565f8 commit 8bd52b9
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 @@ -66,6 +66,7 @@ def split_designacao(
df = df.explode('Designação_Emissão').reset_index(drop=True)

df = df[df['Designação_Emissão'] != '/'] # Removes empty rows
df['Designação_Emissão'] = df['Designação_Emissão'].astype('string', copy=False)
# Apply the parse_bw function
parsed_data = zip(*df['Designação_Emissão'].apply(Base.parse_bw))
df['Largura_Emissão(kHz)'], df['Classe_Emissão'] = parsed_data
Expand Down

0 comments on commit 8bd52b9

Please sign in to comment.