Skip to content

Commit 48606dd

Browse files
Amélioration rendu dataframe pandas (#229)
* test rendering pandas dataframe * Automated changes * black color * Automated changes * Automated changes * no border * Automated changes * Automated changes Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1ca1a8a commit 48606dd

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

assets/scss/custom.scss

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
1+
/* ------------------------------
2+
DATAFRAME RENDERING
3+
---------------------------------*/
4+
5+
.dataframe {
6+
border: none
7+
}
8+
9+
.dataframe table {
10+
margin-left: auto;
11+
margin-right: auto;
12+
border: none;
13+
border-collapse: collapse;
14+
border-spacing: 0;
15+
color: black ;
16+
font-size: 12px;
17+
table-layout: fixed;
18+
}
19+
20+
.dataframe thead {
21+
border-bottom: 1px solid black ;
22+
vertical-align: bottom;
23+
}
24+
25+
.dataframe tr, .dataframe th, .dataframe td {
26+
text-align: right;
27+
vertical-align: middle;
28+
padding: 0.5em 0.5em;
29+
line-height: normal;
30+
white-space: normal;
31+
max-width: none;
32+
border: none;
33+
}
34+
35+
.dataframe th {
36+
font-weight: bold;
37+
}
38+
.dataframe tbody tr:nth-child(odd) {
39+
background: #f5f5f5;
40+
}
41+
.dataframe tbody tr:hover {
42+
background: rgba(66, 165, 245, 0.2);
43+
}
44+
/*
45+
borrowed from
46+
https://github.com/jupyter/notebook/blob/9de5042e1058dc8aef7632f313e3e86c33390d31/notebook/static/notebook/less/renderedhtml.less#L77-L109
47+
*/
48+
49+
50+
51+
/*-------------------
52+
CUSTOM BOXES
53+
--------------------*/
54+
155
.box-exercise,
256
.box-warning,
357
.box-caution,

content/course/manipulation/02a_pandas_tutorial/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ from utils import print_badges
3838
print_badges("content/course/manipulation/02a_pandas_tutorial.qmd")
3939
```
4040

41+
4142
Dans ce tutoriel `pandas`, nous allons utiliser:
4243

4344
* Les émissions de gaz à effet de serre estimées au niveau communal par l'ADEME. Le jeu de données est

0 commit comments

Comments
 (0)