Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asv_bench/benchmarks/ctors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def gen_of_str(arr):


def arr_dict(arr):
return dict(zip(range(len(arr)), arr))
return dict(zip(range(len(arr)), arr, strict=True))


def list_of_tuples(arr):
Expand Down
6 changes: 4 additions & 2 deletions asv_bench/benchmarks/series_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setup(self):
self.idx = date_range(
start=datetime(2015, 10, 26), end=datetime(2016, 1, 1), freq="50s"
)
self.data = dict(zip(self.idx, range(len(self.idx))))
self.data = dict(zip(self.idx, range(len(self.idx)), strict=True))
self.array = np.array([1, 2, 3])
self.idx2 = Index(["a", "b", "c"])

Expand Down Expand Up @@ -407,7 +407,9 @@ def setup(self, num_to_replace):
self.to_replace_list = np.random.choice(self.arr, num_to_replace)
self.values_list = np.random.choice(self.arr1, num_to_replace)

self.replace_dict = dict(zip(self.to_replace_list, self.values_list))
self.replace_dict = dict(
zip(self.to_replace_list, self.values_list, strict=True)
)

def time_replace_dict(self, num_to_replace):
self.ser.replace(self.replace_dict)
Expand Down
Loading