Repository: modin-project/modin

Issue:
``dataframe.compare()`` doesn`t work correctly at MODIN_STORAGE_FORMAT=omnisci
When I run:
```
import pandas
import modin.pandas as pd
from modin.pandas.test.utils import random_state
import modin.config as cfg
cfg.StorageFormat.put('omnisci')

kwargs = {
    "align_axis": "columns",
    "keep_shape": False,
}
frame_data1 = random_state.randn(100, 10)
frame_data2 = random_state.randn(100, 10)
pandas_df = pandas.DataFrame(frame_data1, columns=list("abcdefghij"))
pandas_df2 = pandas.DataFrame(frame_data2, columns=list("abcdefghij"))
modin_df = pd.DataFrame(frame_data1, columns=list("abcdefghij"))
modin_df2 = pd.DataFrame(frame_data2, columns=list("abcdefghij"))
modin_result = modin_df.compare(modin_df2, **kwargs)
pandas_result = pandas_df.compare(pandas_df2, **kwargs)
assert to_pandas(modin_result).equals(pandas_result)
```
I have error:
```
KeyError: "None of ['F___index__0___None__'] are in the columns"
```


Discussion:
@modin-project/modin-omnisci  could someone please check if this still happens?

Resolving patch:
diff --git a/modin/experimental/core/execution/native/implementations/hdk_on_native/dataframe/dataframe.py b/modin/experimental/core/execution/native/implementations/hdk_on_native/dataframe/dataframe.py
--- a/modin/experimental/core/execution/native/implementations/hdk_on_native/dataframe/dataframe.py
+++ b/modin/experimental/core/execution/native/implementations/hdk_on_native/dataframe/dataframe.py
@@ -2538,7 +2538,7 @@ def _is_trivial_index(cls, index):
             return False
         return (
             index.is_monotonic_increasing
-            and index.unique
-            and index.min == 0
-            and index.max == len(index) - 1
+            and index.is_unique
+            and index.min() == 0
+            and index.max() == len(index) - 1
         )


Test patch:
diff --git a/modin/experimental/core/execution/native/implementations/hdk_on_native/test/test_dataframe.py b/modin/experimental/core/execution/native/implementations/hdk_on_native/test/test_dataframe.py
--- a/modin/experimental/core/execution/native/implementations/hdk_on_native/test/test_dataframe.py
+++ b/modin/experimental/core/execution/native/implementations/hdk_on_native/test/test_dataframe.py
@@ -19,7 +19,11 @@
 import re
 
 from modin.config import StorageFormat
-from modin.pandas.test.utils import io_ops_bad_exc, default_to_pandas_ignore_string
+from modin.pandas.test.utils import (
+    io_ops_bad_exc,
+    default_to_pandas_ignore_string,
+    random_state,
+)
 from .utils import eval_io, ForceHdkImport, set_execution_mode, run_and_compare
 from pandas.core.dtypes.common import is_list_like
 
@@ -452,7 +456,7 @@ def test_reset_index_multicolumns(self, is_multiindex, column_names):
                 names=["l1", "l2", "l3"],
             )
             if is_multiindex
-            else pandas.Index(np.arange(len(self.data["a"])), name="index")
+            else pandas.Index(np.arange(1, len(self.data["a"]) + 1), name="index")
         )
         columns = pandas.MultiIndex.from_tuples(
             [("a", "b"), ("b", "c")], names=column_names
@@ -2226,5 +2230,23 @@ def run_cols(df, **kwargs):
         )
 
 
+class TestCompare:
+    def test_compare_float(self):
+        def run_compare(df1, df2, **kwargs):
+            return df1.compare(df2, align_axis="columns", keep_shape=False)
+
+        data1 = random_state.randn(100, 10)
+        data2 = random_state.randn(100, 10)
+        columns = list("abcdefghij")
+
+        run_and_compare(
+            run_compare,
+            data=data1,
+            data2=data2,
+            constructor_kwargs={"columns": columns},
+            force_lazy=False,
+        )
+
+
 if __name__ == "__main__":
     pytest.main(["-v", __file__])