-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_excel
fails if usecols
and index_cols
parameters are provided
#3305
Comments
7 tasks
Confirmed that this bug is reproducible on master, although the error is different: AssertionError Traceback (most recent call last)
Input In [1], in <cell line: 18>()
24 df_pd = pd.read_excel(filename, **kwargs)
25 df_pandas = pandas.read_excel(filename, **kwargs)
---> 27 df_equals(df_pandas, df_pd)
29 finally:
30 os.remove(filename)
File ~/Documents/modin/modin/pandas/test/utils.py:583, in df_equals(df1, df2)
580 df2 = to_pandas(df2)
582 if isinstance(df1, pandas.DataFrame) and isinstance(df2, pandas.DataFrame):
--> 583 assert_empty_frame_equal(df1, df2)
585 if isinstance(df1, pandas.DataFrame) and isinstance(df2, pandas.DataFrame):
586 assert_frame_equal(
587 df1,
588 df2,
(...)
593 check_categorical=False,
594 )
File ~/Documents/modin/modin/pandas/test/utils.py:528, in assert_empty_frame_equal(df1, df2)
513 """
514 Test if df1 and df2 are empty.
515
(...)
524 If check fails.
525 """
527 if (df1.empty and not df2.empty) or (df2.empty and not df1.empty):
--> 528 assert False, "One of the passed frames is empty, when other isn't"
529 elif df1.empty and df2.empty and type(df1) != type(df2):
530 assert False, f"Empty frames have different types: {type(df1)} != {type(df2)}"
AssertionError: One of the passed frames is empty, when other isn't |
anmyachev
added a commit
to anmyachev/modin
that referenced
this issue
Dec 26, 2022
…rameters are provided Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
7 tasks
dchigarev
pushed a commit
that referenced
this issue
Jan 26, 2023
…s are provided (#5508) Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com> Co-authored-by: Vasily Litvinov <fam1ly.n4me@yandex.ru>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem
Source code / logs
The text was updated successfully, but these errors were encountered: