[Tutor] Translating R Code to Python-- reading in csv files, writing out to csv files

Dave Angel d at davea.name
Sun May 20 17:53:29 CEST 2012

Please don't top-post.  You lose the context of what was written before,
since it's now out of order.  When replying to a message, quote the
parts you're replying to, and put your comments AFTER the quotes.

On 05/19/2012 05:07 PM, Benjamin G wrote:
> Thanks, Joel.  Here is a simple example of the input data (top row is
> column headers in the input file)
> Patient ID                             Sample Type  Survival Time(months)
> unique_patient_ID1                Tumor           12
> unique_patient_ID2                Normal          5
> unique_patient_ID3                Normal          60
> unique_patient_ID4                Tumor           2
> unique_patient_ID5                Tumor           13
But your subject line said you have comma-separated files.  Just how are
these files defined?  The csv module can handle other separators, but I
don't see any separator at all, just fixed columns.



More information about the Tutor mailing list