LAAC-LSCP / ChildProject

Python package for the management of day-long recordings of children.
https://childproject.readthedocs.io
MIT License
13 stars 5 forks source link

Add a minimum pandas version requirement #177

Closed lucasgautheron closed 3 years ago

lucasgautheron commented 3 years ago

Marvin had the following error with pandas 0.23.4. Need to find which is the oldest version of pandas that work and upgrade setup.py accordingly !

/shared/apps/anaconda3/lib/python3.7/site-packages/pandas/core/ops.py:1167: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  result = method(y)
Traceback (most recent call last):
  File "/home/mlavechin/.local/bin/child-project", line 11, in <module>
    sys.exit(main())
  File "/home/mlavechin/.local/lib/python3.7/site-packages/ChildProject/cmdline.py", line 263, in main
    args.func(args)
  File "/home/mlavechin/.local/lib/python3.7/site-packages/ChildProject/cmdline.py", line 40, in validate
    errors, warnings = project.validate(args.ignore_files)
  File "/home/mlavechin/.local/lib/python3.7/site-packages/ChildProject/projects.py", line 130, in validate
    errors, warnings = self.ct.validate()
  File "/home/mlavechin/.local/lib/python3.7/site-packages/ChildProject/tables.py", line 143, in validate
    grouped = self.df[self.df[c.name] != 'NA']
  File "/shared/apps/anaconda3/lib/python3.7/site-packages/pandas/core/ops.py", line 1283, in wrapper
    res = na_op(values, other)
  File "/shared/apps/anaconda3/lib/python3.7/site-packages/pandas/core/ops.py", line 1169, in na_op
    raise TypeError("invalid type comparison")
TypeError: invalid type comparison