You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>># Write typed column to Parquet — dtype is preserved on read
62
+
>>> typed = df.with_columns(ip.to_address("ip"))
63
+
>>> typed.write_parquet("/tmp/ips.parquet")
64
+
>>> pl.read_parquet("/tmp/ips.parquet").dtypes
65
+
[String, IPAddress]
66
+
```
67
+
37
68
### `is_in` but for network ranges
38
69
39
70
Pandas and Polars have `is_in` functions to perform membership lookups. IPTools extends this to enable IP address membership in IP _networks_. This function works seamlessly with both IPv4 and IPv6 addresses and converts the specified networks into a [Level-Compressed trie (LC-Trie)](https://github.com/Orange-OpenSource/iptrie) for fast, efficient lookups.
0 commit comments