The object you're after (available to you in the shell) is
"session.models.histdata". Using it, and its source code as a guide,
you should be able to figure out how to save the rows in the model.
(Hint: check the output of iterrows first).
Hope this helps, and I plan on having the export working soon.