Re: Filter dataset by column value Wrapper Python
Peter Reutemann <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <[email protected]> |
Post your code, otherwise it is impossible to see what's going wrong. For instance, my example used the last attribute in the iris dataset, but yours is the first. Cheers, Peter On October 29, 2021 8:45:41 PM GMT+13:00, [email protected] wrote: >I get this error: > >TypeError: 'NoneType' object is not iterable > >in > >for val in vals: > >The arff file has this: > >@RELATION Vehs > >@ATTRIBUTE vehicle_id {0,1,2,3,4,5,6,7,8,9,10, ... ,2446,2448,2449,2450,2453} >@ATTRIBUTE latitude REAL >@ATTRIBUTE longitude REAL > >The problem is the way I've declared the attribute vehicle_id? >_______________________________________________ >Wekalist mailing list -- [email protected] >Send posts to [email protected] >To unsubscribe send an email to [email protected] >To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz >List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html -- Peter Reutemann Dept. of Computer Science University of Waikato, NZ +64 (7) 858-5174 (office) +64 (7) 577-5304 (home office) http://www.cms.waikato.ac.nz/~fracpete/ http://www.data-mining.co.nz/. _______________________________________________ Wekalist mailing list -- [email protected] Send posts to [email protected] To unsubscribe send an email to [email protected] To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html