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

AttributeError: 'DataFrame' object has no attribute 'to_msgpack' #40

Closed
bolin12 opened this issue Feb 21, 2020 · 3 comments
Closed

AttributeError: 'DataFrame' object has no attribute 'to_msgpack' #40

bolin12 opened this issue Feb 21, 2020 · 3 comments

Comments

@bolin12
Copy link

bolin12 commented Feb 21, 2020

Traceback (most recent call last):
File "main.py", line 423, in
main(RunContext(file, 0))
File "main.py", line 104, in main
train(train_loader, model, ema_model, optimizer, epoch, training_log)
File "main.py", line 310, in train
**meters.sums()
File "/home/lbl/work/mean-teacher-master/pytorch/mean_teacher/run_context.py", line 34, in record
self._record(step, col_val_dict)
File "/home/lbl/work/mean-teacher-master/pytorch/mean_teacher/run_context.py", line 45, in _record
self.save()
File "/home/lbl/work/mean-teacher-master/pytorch/mean_teacher/run_context.py", line 38, in save
df.to_msgpack(self.log_file_path, compress='zlib')
File "/home/lbl/miniconda3/lib/python3.7/site-packages/pandas/core/generic.py", line 5274, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'to_msgpack'

my pandas version is 1.0.1 and this function may be removed earlier, so what can i do?

@bolin12 bolin12 closed this as completed Feb 21, 2020
@Wangzheaos
Copy link

更换版本pandas==0.20.3

@chouqin3
Copy link

更换版本pandas==0.20.3

no work

@yanghu819
Copy link

same problem+1

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

4 participants