Skip to content

Conversation

@dsaxton
Copy link
Contributor

@dsaxton dsaxton commented May 12, 2020

No description provided.



def convert_to_list_like(values):
if hasattr(values, "dtype"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u type and add a doc string
make these elif

see where else we can u this

@jreback jreback added the Clean label May 12, 2020

def convert_to_list_like(
values: Union[Scalar, Iterable, AnyArrayLike]
) -> Union[List, AnyArrayLike]:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to rewrite this a bit to get it to type check

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsaxton i noticed you used ABCIndex instead of ABCIndexClass, was that intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, definitely change if you feel it's not correct


import collections
from collections import abc
from collections import abc, defaultdict
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly unrelated, but this seems better than mixing the two import styles

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

@jreback jreback added this to the 1.1 milestone May 13, 2020
@jreback
Copy link
Contributor

jreback commented May 13, 2020

hmm azure doesnt' seem to be running. can you merge master and ping on green.

@jreback jreback merged commit dfaa507 into pandas-dev:master May 13, 2020
@jreback
Copy link
Contributor

jreback commented May 13, 2020

thanks

@dsaxton dsaxton deleted the move-function branch May 13, 2020 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants