Skip to content

Commit

Permalink
stop using deprecated constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
papajohn committed Jan 29, 2016
1 parent c17d730 commit 825683a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datascience/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def empty(cls, labels=None):
@classmethod
def from_rows(cls, rows, labels):
"""Create a table from a sequence of rows (fixed-length sequences)."""
return cls(list(zip(*rows)), labels)
return cls().with_columns(list(zip(labels, list(zip(*rows)))))

@classmethod
def from_records(cls, records):
Expand Down

0 comments on commit 825683a

Please sign in to comment.