Skip to content

Commit

Permalink
fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hamshkhawar committed Jan 10, 2025
1 parent e67830e commit c70d45d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def preview(out_dir: Path, file_pattern: str) -> None:
out_json: dict[str, Any] = {
"filepattern": file_pattern,
"outDir": str(out_name),

}
with Path(out_dir, "preview.json").open("w") as jfile:
json.dump(out_json, jfile, indent=2)
8 changes: 6 additions & 2 deletions features/tabular-statistics-tool/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def test_apply_statistics() -> None:
d1 = Generatedata(file_pattern=i, out_name=f"data_1{i}")
d1()
table = pa.table(d1.df)
numeric_table = table.drop([col for col in table.column_names if pa.types.is_string(table[col].type)])
numeric_table = table.drop(
[col for col in table.column_names if pa.types.is_string(table[col].type)]
)
statistics_list = list(ts.STATS.keys())

# Test applying each statistic in STATS to the table
Expand All @@ -113,7 +115,9 @@ def test_all_statistics() -> None:
d1 = Generatedata(file_pattern=i, out_name=f"data_1{i}")
d1()
table = pa.table(d1.df)
numeric_table = table.drop([col for col in table.column_names if pa.types.is_string(table[col].type)])
numeric_table = table.drop(
[col for col in table.column_names if pa.types.is_string(table[col].type)]
)
statistics = "all"
result_table = ts.apply_statistics(numeric_table, statistics=statistics)

Expand Down

0 comments on commit c70d45d

Please sign in to comment.