I have a list of IPs and I want to filter out the IPs that come from AWS. Fortunately, AWS publishes a list of their IPs. That list is in a JSON format, so I converted it to a CSV. I then filtered my IP addresses using my_ip = my_ip[~my_ip['col'].isin(amazon_ips['col'])]
.
Unfortunately, I think that the list is for ranges of IPs, rather than actually containing each IP that an AWS request could have come from. How can I correct for this?