> On Jun 30, 2018, at 02:01, Peter Otten <__pete...@web.de> wrote:
> 
> 
> Rather than forcing both blocks into the same data structure I would read 
> the header with the "key: value" lines into a separate object.
> 
> If the header and the X,Y pairs are separated by an empty line read until 
> that and then feed the file object to pandas.read_csv() to read those pairs:

Ultimately, everything presented so far is conjecture without getting 
clarification from the original poster on what they actually need and what the 
dataset looks like.  Does every file look the same? is it always a header and 
data separated by empty lines?

Hopefully we will get some feedback.


— 
David Rock
da...@graniteweb.com




_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to