Skip to content

Commit

Permalink
FEAT-#6801: Add 'modin.pandas.error' module
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Dec 4, 2023
1 parent b8202f1 commit 9e5aa5f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modin/pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def _update_engine(publisher: Parameter):
_is_first_update[publisher.get()] = False


from modin.pandas import errors
from modin.utils import show_versions

from .. import __version__
Expand Down Expand Up @@ -331,6 +332,7 @@ def _update_engine(publisher: Parameter):
"Float32Dtype",
"Float64Dtype",
"from_dummies",
"errors",
]

del pandas, Parameter
18 changes: 18 additions & 0 deletions modin/pandas/errors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific language
# governing permissions and limitations under the License.


"""The module is needed to allow the following import `from modin.pandas import errors`."""

from pandas.errors import * # noqa: F403, F401
from pandas.errors import __all__ # noqa: F401
1 change: 0 additions & 1 deletion modin/pandas/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def test_top_level_api_equality():
"arrays",
"api",
"tseries",
"errors",
"to_msgpack", # This one is experimental, and doesn't look finished
"Panel", # This is deprecated and throws a warning every time.
"SparseSeries", # depreceted since pandas 1.0, not present in 1.4+
Expand Down

0 comments on commit 9e5aa5f

Please sign in to comment.