Skip to main content
10 events
when toggle format what by license comment
May 26, 2022 at 16:06 comment added Max I have a doubt that this works. Your parse_file re-opens the output_file but help(PdfPages.__init__) says The file is opened at once and any older file with the same name is overwritten..
Apr 26, 2019 at 9:45 comment added Maarten Fabré Sure, go ahead.
Apr 25, 2019 at 12:00 comment added point618 thanks a lot, this has been really helpful. The script is part of a larger (open source) program. Are you happy for me to upload this code to github? With proper credits of course.
Apr 25, 2019 at 11:47 vote accept point618
Apr 25, 2019 at 7:09 comment added Maarten Fabré I think both items and iteritems should work
Apr 24, 2019 at 19:25 history bounty ended point618
Apr 24, 2019 at 13:21 comment added point618 Ah, so it should be for i, (label, column) in enumerate(group.iteritems()): in the generate_plots() function.
Apr 24, 2019 at 12:36 comment added Maarten Fabré DataFrame.items. This should work. It worked for me at least. I didn't test the pdf creation, but the plot generation worked.
Apr 24, 2019 at 12:19 comment added point618 Thanks, looks great. I am getting an error 'DataFrame' object has no attribute 'items' which I think is related to the output of column_grouper(), but I am not sure I understand exactly what that function does.
Apr 19, 2019 at 12:49 history answered Maarten Fabré CC BY-SA 4.0