vaexio/vaex

[BUG-REPORT] str.replace(..., regex=True) : can't use capture group in repl str

Open

#1.754 aberto em 2 de dez. de 2021

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)Python (591 forks)batch import
bugenhancementgood first issuepriority: medium

Métricas do repositório

Stars
 (8.117 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

vaex.from_arrays(s=['a,b']).s.str.replace(r'(\w+)',r'--\g<1>==',regex=True)

when using capture group in str, it fails, while str_pandas.replace() is correct image

Name: vaex Version: 4.6.0 Summary: Out-of-Core DataFrames to visualize and explore big tabular datasets Home-page: https://www.github.com/vaexio/vaex Author: Maarten A. Breddels Author-email: maartenbreddels@gmail.com License: MIT Location: /home/support/miniconda3/lib/python3.9/site-packages Requires: vaex-astro, vaex-core, vaex-hdf5, vaex-jupyter, vaex-ml, vaex-server, vaex-viz Required-by:

Guia do colaborador