Skip to content

Commit

Permalink
Remove empty values from dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
petya-vasileva authored Oct 9, 2024
1 parent a93eed3 commit 506acad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ps-trace_path_changed.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ def getPaths(fld, ddf):
return temp

probDf['P'] = probDf['P'].round(2)
# Replace invalid values with NaN, then convert to integers
probDf['asn'] = pd.to_numeric(probDf['asn'], errors='coerce')
probDf['asn'] = probDf['asn'].astype('int')

alarmsData = []
Expand Down

0 comments on commit 506acad

Please sign in to comment.