summaryrefslogtreecommitdiff
path: root/redis/commands/bf/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/bf/commands.py')
-rw-r--r--redis/commands/bf/commands.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/redis/commands/bf/commands.py b/redis/commands/bf/commands.py
index 71c9c8a..60409fd 100644
--- a/redis/commands/bf/commands.py
+++ b/redis/commands/bf/commands.py
@@ -370,19 +370,13 @@ class TDigestCommands:
""" # noqa
return self.execute_command(TDIGEST_RESET, key)
- def add(self, key, values, weights):
+ def add(self, key, values):
"""
- Add one or more samples (value with weight) to a sketch `key`.
- Both `values` and `weights` are lists.
- For more information see `TDIGEST.ADD <https://redis.io/commands/tdigest.add>`_.
-
- Example:
+ Adds one or more observations to a t-digest sketch `key`.
- >>> tdigestadd('A', [1500.0], [1.0])
+ For more information see `TDIGEST.ADD <https://redis.io/commands/tdigest.add>`_.
""" # noqa
- params = [key]
- self.append_values_and_weights(params, values, weights)
- return self.execute_command(TDIGEST_ADD, *params)
+ return self.execute_command(TDIGEST_ADD, key, *values)
def merge(self, destination_key, num_keys, *keys, compression=None, override=False):
"""