Skip to content

BUG: #44729

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

Closed
2 of 3 tasks
numeric-lee opened this issue Dec 2, 2021 · 1 comment
Closed
2 of 3 tasks

BUG: #44729

numeric-lee opened this issue Dec 2, 2021 · 1 comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@numeric-lee
Copy link

numeric-lee commented Dec 2, 2021

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the master branch of pandas.

Reproducible Example

l0_id    3
l1_id    4

Name: 0, dtype: float64

row.at['dist', 1]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-601-419ac8472e13> in <module>
----> 1 row.at['dist', 1]

~/.conda/envs/lex/lib/python3.6/site-packages/pandas/core/indexing.py in __getitem__(self, key)
   2198 
   2199         key = self._convert_key(key)
-> 2200         return self.obj._get_value(*key, takeable=self._takeable)
   2201 
   2202     def __setitem__(self, key, value):

TypeError: _get_value() got multiple values for argument 'takeable'


but 
row.set_value('dist', 1)
works fine

Issue Description

#26989 Series with MultiIndex "at" function raises "TypeError"
This error still exists
.set_value works, at[] doesnt

Expected Behavior

please dont deprecate set_value until the replacement works

Installed Versions

pandas 0.25.3

@numeric-lee numeric-lee added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Dec 2, 2021
@numeric-lee
Copy link
Author

row.at['dist'] = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

No branches or pull requests

1 participant