vaexio/vaex

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

Open

#1,754 建立於 2021年12月2日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Python (591 fork)batch import
bugenhancementgood first issuepriority: medium

倉庫指標

Star
 (8,117 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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:

貢獻者指南