Skip to content
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

ValueError: Cannot subset columns with a tuple with more than one element. Use a list instead #10

Closed
Christopher7622 opened this issue Jul 19, 2023 · 1 comment

Comments

@Christopher7622
Copy link

I'm using 2.0.3 version pandas
Traceback (most recent call last):
File "MF/simple_reproduce.py", line 30, in
from batch_test import *
File "C:\Users\Administrator\PDAModelTests\MF\batch_test.py", line 10, in
data = Data2(args)
File "C:\Users\Administrator\PDAModelTests\MF\load_data.py", line 742, in init
self.load_ori_data(args)
File "C:\Users\Administrator\PDAModelTests\MF\load_data.py", line 639, in load_ori_data
user_item_time = train_data.groupby('uid')[('iid','time')].agg(list)
File "C:\Users\Administrator\anaconda3\lib\site-packages\pandas\core\groupby\generic.py", line 1767, in getitem
raise ValueError(
ValueError: Cannot subset columns with a tuple with more than one element. Use a list instead.

@zyang1580
Copy link
Owner

I'd like you to please read ReadMe.md to find the used version of Pandas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants