You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[upstream/build] missing newline after info() call on empty dataframe #8726
Currently the test test_dataframe.py::test_info fails on the upstream build because there is a pandas upstream PR merged that now includes a newline \n see pandas-dev/pandas#45498
Minimal Reproducible Example :
fromioimportStringIOimportpandasaspdimportdask.dataframeasdddf_empty=pd.DataFrame()
ddf_empty=dd.from_pandas(df_empty, npartitions=4)
buf_pd, buf_da=StringIO(), StringIO()
df_empty.info(buf=buf_pd, memory_usage=True)
ddf_empty.info(buf=buf_da, verbose=True, memory_usage=True)
stdout_pd=buf_pd.getvalue()
stdout_da=buf_da.getvalue()
stdout_da=stdout_da.replace(str(type(ddf)), str(type(df))) # as done in `_assert_info()`
Activity