Skip to content

Commit

Permalink
changed unsafe code
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanhemani committed Aug 31, 2020
1 parent 701990a commit 0dcd284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datascience/tables.py
Expand Up @@ -48,7 +48,7 @@ def __init__(self, labels=None, formatter=_formats.default_formatter):
labels = labels if labels is not None else []
columns = [[] for _ in labels]

self._num_rows = 0 if len(columns) is 0 else len(columns[0])
self._num_rows = 0 if len(columns) == 0 else len(columns[0])

# Add each column to table
for column, label in zip(columns, labels):
Expand Down

0 comments on commit 0dcd284

Please sign in to comment.