Skip to content

Commit 978b080

Browse files
committed
Preserve previous tag escaping behavior
`re.escape` affects all non-alphanumerical characters, as opposed to `line_protocol._escape_tag` which only escapes specific characters [\ ,=]
1 parent a1ffa0a commit 978b080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

influxdb/_dataframe_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
from __future__ import unicode_literals
99

1010
import math
11-
import re
1211

1312
import pandas as pd
1413

1514
from .client import InfluxDBClient
15+
from .line_protocol import _escape_tag
1616

1717

1818
def _pandas_time_unit(time_precision):
@@ -28,7 +28,7 @@ def _pandas_time_unit(time_precision):
2828

2929

3030
def _escape_pandas_series(s):
31-
return s.apply(lambda v: re.escape(v))
31+
return s.apply(lambda v: _escape_tag(v))
3232

3333

3434
class DataFrameClient(InfluxDBClient):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy