Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-python/src/functions/strings.rs
7889 views
1
use pyo3::prelude::*;
2
3
#[pyfunction]
4
pub fn escape_regex(s: &str) -> PyResult<String> {
5
let escaped_s = polars_ops::chunked_array::strings::escape_regex_str(s);
6
Ok(escaped_s)
7
}
8
9