Workaround pandas bug #7548 in graph.graph_to_df().