jeudi 31 décembre 2015

pandas: read a small random sample from big CSV, according to sampling policy

Very related to Read a small random sample from a big CSV file into a Python data frame .

I have a very big csv, with columns patient_id,visit_data. I want to read a small sample from it, but if I sample a patient I want to sample all of his records.




Aucun commentaire:

Enregistrer un commentaire