Skip to content

Commit 31f82cf

Browse files
committed
COMPAT: For pandas 0.21.0 HTML repr changes
pandas-dev/pandas#16879
1 parent effed32 commit 31f82cf

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

dask/dataframe/tests/test_format.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,22 @@
55
import dask.dataframe as dd
66
from dask.dataframe.utils import PANDAS_VERSION
77

8-
if PANDAS_VERSION >= '0.20.0':
8+
if PANDAS_VERSION >= '0.21.0':
9+
style = """<style scoped>
10+
.dataframe tbody tr th:only-of-type {
11+
vertical-align: middle;
12+
}
13+
14+
.dataframe tbody tr th {
15+
vertical-align: top;
16+
}
17+
18+
.dataframe thead th {
19+
text-align: right;
20+
}
21+
</style>
22+
"""
23+
elif PANDAS_VERSION >= '0.20.0':
924
style = """<style>
1025
.dataframe thead tr:only-child th {
1126
text-align: right;

0 commit comments

Comments
 (0)