Skip to content

Commit

Permalink
Amélioration rendu dataframe pandas (#229)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
linogaliana and github-actions[bot] committed May 31, 2022
1 parent 1ca1a8a commit 48606dd
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions assets/scss/custom.scss
@@ -1,3 +1,57 @@
/* ------------------------------
DATAFRAME RENDERING
---------------------------------*/

.dataframe {
border: none
}

.dataframe table {
margin-left: auto;
margin-right: auto;
border: none;
border-collapse: collapse;
border-spacing: 0;
color: black ;
font-size: 12px;
table-layout: fixed;
}

.dataframe thead {
border-bottom: 1px solid black ;
vertical-align: bottom;
}

.dataframe tr, .dataframe th, .dataframe td {
text-align: right;
vertical-align: middle;
padding: 0.5em 0.5em;
line-height: normal;
white-space: normal;
max-width: none;
border: none;
}

.dataframe th {
font-weight: bold;
}
.dataframe tbody tr:nth-child(odd) {
background: #f5f5f5;
}
.dataframe tbody tr:hover {
background: rgba(66, 165, 245, 0.2);
}
/*
borrowed from
https://github.com/jupyter/notebook/blob/9de5042e1058dc8aef7632f313e3e86c33390d31/notebook/static/notebook/less/renderedhtml.less#L77-L109
*/



/*-------------------
CUSTOM BOXES
--------------------*/

.box-exercise,
.box-warning,
.box-caution,
Expand Down
1 change: 1 addition & 0 deletions content/course/manipulation/02a_pandas_tutorial/index.qmd
Expand Up @@ -38,6 +38,7 @@ from utils import print_badges
print_badges("content/course/manipulation/02a_pandas_tutorial.qmd")
```


Dans ce tutoriel `pandas`, nous allons utiliser:

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

0 comments on commit 48606dd

Please sign in to comment.