Codebase list python-panwid / fbc3d41
Merge branch 'master' of https://github.com/laixintao/panwid Tony Cebzanov 6 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5050 def append_rows(self, rows):
5151
5252 colnames = list(self.columns)
53 length = len(rows)
5354
5455 try:
5556 columns = list(set().union(*(list(d.keys()) for d in rows)))
6061 ))
6162 )
6263 if self.index_name not in columns:
63 index = list(range(len(self), len(list(data.values())[0])))
64 index = list(range(len(self), len(self) + length))
6465 data[self.index_name] = index
6566 else:
6667 index = data[self.index_name]