Skip to content

Commit 1a7e0fa

Browse files
committed
Removed mutable default arguments
1 parent 3da299a commit 1a7e0fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

influxdb/_dataframe_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def _convert_dataframe_to_lines(self,
227227
measurement,
228228
field_columns=None,
229229
tag_columns=None,
230-
global_tags={},
230+
global_tags=None,
231231
time_precision=None,
232232
numeric_precision=None):
233233

@@ -366,7 +366,7 @@ def _stringify_dataframe(self,
366366

367367
if datatype == 'field':
368368
# If dealing with fields, format ints and strings correctly
369-
dataframe[int_columns] = dataframe[int_columns] + 'i'
369+
dataframe[int_columns] += 'i'
370370
dataframe[string_columns] = '"' + dataframe[string_columns] + '"'
371371
elif datatype == 'tag':
372372
dataframe = dataframe.apply(_escape_pandas_series)

influxdb/tests/client_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def __init__(self, *args, **kwargs):
838838

839839
def query(self,
840840
query,
841-
params={},
841+
params=None,
842842
expected_response_code=200,
843843
database=None):
844844
if query == 'Fail':

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