Skip to content

Commit

Permalink
Fixed the lint and took the update from main
Browse files Browse the repository at this point in the history
Signed-off-by: Yerzhaisang <tasqali1697@gmail.com>
  • Loading branch information
Yerzhaisang committed Feb 13, 2024
1 parent 4067fcf commit 35e3fb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opensearch_py_ml/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def drop(
axis = pd.DataFrame._get_axis_name(axis)
axes = {axis: labels}
elif index is not None or columns is not None:
axes = {'index': index, 'columns': columns}
axes = {"index": index, "columns": columns}
else:
raise ValueError(
"Need to specify at least one of 'labels', 'index' or 'columns'"
Expand Down
1 change: 1 addition & 0 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,6 @@ def mad(x):
x = x[numeric_columns]
return np.fabs(x - x.mean()).mean()


def quantile(x, numeric_only=None):
return x.quantile()
2 changes: 1 addition & 1 deletion tests/dataframe/test_metrics_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import pytest
from pandas.testing import assert_frame_equal, assert_series_equal

from tests.common import TestData, assert_almost_equal, quantile, mad
from tests.common import TestData, assert_almost_equal, mad, quantile


class TestDataFrameMetrics(TestData):
Expand Down

0 comments on commit 35e3fb1

Please sign in to comment.