Re: To write headers once with different values in separate row in CSV

2015-06-25 Thread kbtyo
Okay, so I have gone back to the drawing board and have the following predicament (my apologies, in advance for the indentation): Here is my sample: 0 0 0 0 0 0

Re: To write headers once with different values in separate row in CSV

2015-06-24 Thread kbtyo
On Wednesday, June 24, 2015 at 8:38:24 AM UTC-4, Steven D'Aprano wrote: > On Wed, 24 Jun 2015 09:37 pm, kbtyo wrote: > > > On Tuesday, June 23, 2015 at 9:50:50 PM UTC-4, Steven D'Aprano wrote: > >> On Wed, 24 Jun 2015 03:15 am, Sahlusar wrote: > >> > >> > That is not the underlying issue. Any tho

Re: To write headers once with different values in separate row in CSV

2015-06-24 Thread Steven D'Aprano
On Wed, 24 Jun 2015 09:37 pm, kbtyo wrote: > On Tuesday, June 23, 2015 at 9:50:50 PM UTC-4, Steven D'Aprano wrote: >> On Wed, 24 Jun 2015 03:15 am, Sahlusar wrote: >> >> > That is not the underlying issue. Any thoughts or suggestions would be >> > very helpful. >> >> >> Thank you for spending o

Re: To write headers once with different values in separate row in CSV

2015-06-24 Thread kbtyo
On Tuesday, June 23, 2015 at 9:50:50 PM UTC-4, Steven D'Aprano wrote: > On Wed, 24 Jun 2015 03:15 am, Sahlusar wrote: > > > That is not the underlying issue. Any thoughts or suggestions would be > > very helpful. > > > Thank you for spending over 100 lines to tell us what is NOT the underlying >

Re: To write headers once with different values in separate row in CSV

2015-06-24 Thread kbtyo
On Tuesday, June 23, 2015 at 3:12:40 PM UTC-4, John Gordon wrote: > In Sahlusar > writes: > > > However, when I extrapolate this same logic with a list like: > > > ('Response.MemberO.PMembers.PMembers.Member.CurrentEmployer.EmployerAddress > > .TimeAtPreviousAddress.', None), where the headers

Re: To write headers once with different values in separate row in CSV

2015-06-23 Thread Steven D'Aprano
On Wed, 24 Jun 2015 03:15 am, Sahlusar wrote: > That is not the underlying issue. Any thoughts or suggestions would be > very helpful. Thank you for spending over 100 lines to tell us what is NOT the underlying issue. I will therefore tell you what is NOT the solution to your problem (whatever i

Re: To write headers once with different values in separate row in CSV

2015-06-23 Thread Saran Ahluwalia
It was an XML formatting issue; apparently you have to explicitly call a delimiter via the Command Prompt on my OS. IPython Notebook seems to make certain assumptions regarding read and write. On Tue, Jun 23, 2015 at 3:12 PM, John Gordon wrote: > In Sahlusar < > ahlusar.ahluwa...@gmail.com> wri

Re: To write headers once with different values in separate row in CSV

2015-06-23 Thread John Gordon
In Sahlusar writes: > However, when I extrapolate this same logic with a list like: > ('Response.MemberO.PMembers.PMembers.Member.CurrentEmployer.EmployerAddress > .TimeAtPreviousAddress.', None), where the headers/columns are the first > item (only to be written out once) with different value

To write headers once with different values in separate row in CSV

2015-06-23 Thread Sahlusar
I have the following script for writing out to CSV two items in a list to a CSV in such a format, such that if we have: L = [('A', 1), ('B', 2), ('C', 3), ('D', 4),('A', 5), ('B', 6), ('D', 8)] we want A B C D 1 2 3 4 5 6 8 And with this L = [('A', 1), ('B', 2), ('C', 3), ('D', 4),('D', 5)