-werners-
Esteemed Contributor III

that is a built-in python function so it should work in a python notebook. You can also use pandas btw.
If you use a scala notebook you should use a scala/java library.
For SQL notebooks: use python/scala 🙂