Skip to content

Commit

Permalink
Fix detection of long-format ClassificationsDataFrame. Closes #268.
Browse files Browse the repository at this point in the history
  • Loading branch information
polyatail committed Jul 1, 2019
1 parent 5f74705 commit d807cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onecodex/dataframes.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def to_html(self, *args, **kwargs):
kwargs["max_cols"] = 10

# round abundances to avoid long trails of zeros, and sort taxa in order of abundance
if "classification_id" in self.columns:
if "classification_id" in self.columns and "tax_id" in self.columns:
# long format
df = self.copy()
df[self.ocx_field] = df[self.ocx_field].round(6)
Expand Down

0 comments on commit d807cf6

Please sign in to comment.