Skip to content

CLN: Exception in generic, series #28434

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 2 commits into from
Sep 17, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@@ -1282,11 +1282,6 @@ def _set_with(self, key, value):

if is_scalar(key):
key = [key]
elif not isinstance(key, (list, Series, np.ndarray)):
try:
key = list(key)
Copy link
Member Author

Choose a reason for hiding this comment

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

note below on 1291 we check for Index, which the check on 1285 doesnt do. The only time we actually get to 1287 in the tests is with a DatetimeIndex, which we should not be casting to list.

@WillAyd WillAyd added the Clean label Sep 13, 2019
@WillAyd WillAyd added this to the 1.0 milestone Sep 13, 2019
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@jreback jreback merged commit 8fb1f96 into pandas-dev:master Sep 17, 2019
@jreback
Copy link
Contributor

jreback commented Sep 17, 2019

thanks @jbrockmendel glad to remove some of this cruft

@jbrockmendel jbrockmendel deleted the faster14 branch September 17, 2019 13:57
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
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