Skip to content

Commit c63f418

Browse files
committed
changes
1 parent 5943bee commit c63f418

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

pandas/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def maybe_make_list(obj):
289289
return obj
290290

291291

292-
def maybe_itarable_to_list(obj: Any) -> Any:
292+
def maybe_iterable_to_list(obj: Any) -> Any:
293293
"""
294294
If obj is Iterable but not list-like, consume into list.
295295
"""

pandas/core/internals/construction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def init_dict(data, index, columns, dtype=None):
197197
else:
198198
keys = com.dict_keys_to_ordered_list(data)
199199
columns = data_names = Index(keys)
200-
arrays = (com.maybe_itarable_to_list(data[k]) for k in keys)
200+
arrays = (com.maybe_iterable_to_list(data[k]) for k in keys)
201201
# GH#24096 need copy to be deep for datetime64tz case
202202
# TODO: See if we can avoid these copies
203203
arrays = [arr if not is_datetime64tz_dtype(arr) else

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def __init__(self, data=None, index=None, dtype=None, name=None,
223223
# handle sparse passed here (and force conversion)
224224
data = data.to_dense()
225225
else:
226-
data = com.maybe_itarable_to_list(data)
226+
data = com.maybe_iterable_to_list(data)
227227

228228
if index is None:
229229
if not is_list_like(data):

pandas/tests/frame/test_constructors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ def test_constructor_dict_of_tuples(self):
534534
tm.assert_frame_equal(result, expected, check_dtype=False)
535535

536536
def test_constructor_dict_of_ranges(self):
537+
# GH 26356
537538
data = {'a': range(3), 'b': range(3, 6)}
538539

539540
result = DataFrame(data)

0 commit comments

Comments
 (0)