Re: Filter dataset by column value Wrapper Python
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <163545852377.6634.12133822668886037826@sys-mailman-prd.its.waikato.ac.nz> |
Hi,
I would like to do this but using Wrapper.
data_frame = pd.read_csv ('positions.csv')
vehs= pd.unique(data_frame['id'])
for i in range(0, len(vehs)):
df0 = data_frame[data_frame['id']==vehs[i]]
dat = np.array(df0[['latitude','longitude']])
Is it possible to do it using Wrapper on the fly? I mean without saving them in parallel in CSV, convert them to arff and load them.
_______________________________________________
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