Skip to content

Commit 510bce6

Browse files
committed
Fixing the failing type annotation checks and also the code comments
1 parent c6956af commit 510bce6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/series.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,12 @@ def _init_dict(self, data, index=None, dtype=None):
355355
# raises KeyError), so we iterate the entire dict, and align
356356
if data:
357357
# GH:34717
358-
# Using the below way to generate tuple of keys and values
358+
# Using the below way for generating keys and values
359359
# increasing the performance by 50%, instead of zip
360360
keys = tuple(data.keys())
361-
values = (
362-
*[data[key] for key in keys],
363-
) # Generating tuple of values- faster way
361+
values = [
362+
data[key] for key in keys
363+
] # Generating list of values- faster way
364364

365365
elif index is not None:
366366
# fastpath for Series(data=None). Just use broadcasting a scalar

0 commit comments

Comments
 (0)