Created
September 16, 2019 08:51
-
-
Save joaoceron/43d150b9cac415eae2bfc963760511ea to your computer and use it in GitHub Desktop.
pandas IPv4 address anon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_flows.dst_ip.replace({r'(\d+)\.(\d+)\.(\d+)\.(\d+)': r'\1.X.X.\4'}, regex=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment