Skip to content

Commit

Permalink
Fix pandas FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
xtormin committed Jun 20, 2023
1 parent a82630e commit 2ea1056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/OutputFormat.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def df_output_filters(df, df_columns, only_open_ports):
df = df.loc[df['State Port'] == 'open']

# Convert 'Port' to int for proper sorting
df['Port'] = df['Port'].astype(int)
df[df.columns[df.columns.get_loc('Port')]] = df['Port'].astype(int)

# Sort final dataframe by 'IP' and then 'Port'
df = df.sort_values(by=['IP', 'Port'])
Expand Down

0 comments on commit 2ea1056

Please sign in to comment.