I am trying to reorganize an excel (or csv) table so that dates are no longer column headers. I use limited python knowledge to try to do this, but due to a lack of knowledge on where to start, I can use some help.
Under each date is recorded what happened that day for a particular place. Zero values ββmay be skipped. Some cells contain a β-β and can be converted to 0. I would like to make a column for the date and column to indicate the numeric reading of the day. The name of the place is a new line if it was controlled that day.
Example (smh for the person who started it this way):
Name,7/1/2009,7/2/2009,7/3/2009,7/4/2009..... (and so on to the present) Place A,,5,3, Place B,0,,23,-- Place C,1,2,,35
I would like to:
Name, Date, Reading Place A, 7/2/2009, 5 Place A, 7/3/2009, 3 Place B, 7/1/2009, 0 Place B, 7/4/2009, 0 <--- Even though this is a dash originally it can be converted to a 0 to keep the number an int.
There are hundreds of rows (places), and columns (dates) fall into BPD (these are the correct 1772 columns!).