chore: upgrade black (#19410)

This commit is contained in:
Ville Brofeldt
2022-03-29 20:03:09 +03:00
committed by GitHub
parent 816a2c3e1e
commit a619cb4ea9
204 changed files with 2125 additions and 608 deletions

View File

@@ -107,7 +107,9 @@ def test_resample_after_pivot():
df=df,
index=["__timestamp"],
columns=["city"],
aggregates={"val": {"operator": "sum"},},
aggregates={
"val": {"operator": "sum"},
},
flatten_columns=False,
reset_index=False,
)
@@ -118,7 +120,12 @@ def test_resample_after_pivot():
2022-01-11 3.0 2.0 1.0
2022-01-13 6.0 5.0 4.0
"""
resample_df = pp.resample(df=pivot_df, rule="1D", method="asfreq", fill_value=0,)
resample_df = pp.resample(
df=pivot_df,
rule="1D",
method="asfreq",
fill_value=0,
)
"""
val
city Chicago LA NY
@@ -151,12 +158,16 @@ def test_resample_after_pivot():
def test_resample_should_raise_ex():
with pytest.raises(InvalidPostProcessingError):
pp.resample(
df=categories_df, rule="1D", method="asfreq",
df=categories_df,
rule="1D",
method="asfreq",
)
with pytest.raises(InvalidPostProcessingError):
pp.resample(
df=timeseries_df, rule="1D", method="foobar",
df=timeseries_df,
rule="1D",
method="foobar",
)