python 3.x - How to prepare longitudinal data by Pandas to be then used from a learning algorithm? -


i using pandas clean , prepare datasets used learning algorithm such random forest classification or k-means clustering.

i used have datasets (illustrated example):

enter image description here

however, facing in such of dataset different type called: longitudinal data following illustrated example:

enter image description here

as can see, every single instance (person or car) has several values same feature every value added @ specific point of time.

this edited example dataset:

"id","temperature","***", "001","36","***", "001","36","***", "001","37","***", "001","36","***", "002","38","***", "002","38","***", "002","36","***", ... "004","37","***", "004","37","***", "005","36","***", "005","36","***", 

where every repeat same id means different day in data taken- in our case data temperature.

how use pandas prepare kind of data useful learning algorithm such random forest? if there no way pandas, suggest learning algorithm able deal such data? thank you.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -