Skip to content

CLN: Removing Python 3.6 or higher references that are always true #29492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Nov 13, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Removing unnecessary isinstance of OrderedDict
  • Loading branch information
datapythonista committed Nov 12, 2019
commit 2a175f3d38783bab17bd3776f7a25bbc96571638
4 changes: 2 additions & 2 deletions pandas/core/internals/construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Functions for preparing various inputs passed to the DataFrame or Series
constructors before passing them to a BlockManager.
"""
from collections import OrderedDict, abc
from collections import abc

import numpy as np
import numpy.ma as ma
Expand Down Expand Up @@ -545,7 +545,7 @@ def _list_of_dict_to_arrays(data, columns, coerce_float=False, dtype=None):
"""
if columns is None:
gen = (list(x.keys()) for x in data)
sort = not any(isinstance(d, (dict, OrderedDict)) for d in data)
sort = not any(isinstance(d, dict) for d in data)
columns = lib.fast_unique_multiple_list_gen(gen, sort=sort)

# assure that they are of the base dict class and not of derived
Expand Down