Skip to content

Commit a642dba

Browse files
committed
fix: fix 1031 doc example
1 parent a4498d9 commit a642dba

File tree

5 files changed

+1096
-1096
lines changed

5 files changed

+1096
-1096
lines changed

data/clean/f_1031_zhihan_refined.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def f_1031(list_of_pairs):
2020
>>> list_of_pairs = [('Fruits', 5), ('Vegetables', 9), ('Dairy', -1), ('Bakery', -2), ('Meat', 4)]
2121
>>> product_array = f_1031(list_of_pairs)
2222
>>> print(product_array)
23-
360
23+
[360]
2424
"""
2525
second_values = [pair[1] for pair in list_of_pairs]
2626
product = reduce(np.multiply, second_values)

data/processed/33_w_doc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def task_func(list_of_pairs):
2020
>>> list_of_pairs = [('Fruits', 5), ('Vegetables', 9), ('Dairy', -1), ('Bakery', -2), ('Meat', 4)]
2121
>>> product_array = task_func(list_of_pairs)
2222
>>> print(product_array)
23-
360
23+
[360]
2424
"""
2525
second_values = [pair[1] for pair in list_of_pairs]
2626
product = reduce(np.multiply, second_values)

data/raw/f_1031_zhihan_refined.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def f_1031(list_of_pairs):
2020
>>> list_of_pairs = [('Fruits', 5), ('Vegetables', 9), ('Dairy', -1), ('Bakery', -2), ('Meat', 4)]
2121
>>> product_array = f_1031(list_of_pairs)
2222
>>> print(product_array)
23-
360
23+
[360]
2424
"""
2525
second_values = [pair[1] for pair in list_of_pairs]
2626
product = reduce(np.multiply, second_values)

0 commit comments

Comments
 (0)