2019-08-04 14:25:44 +00:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2019-08-04 17:28:43 +00:00
|
|
|
"execution_count": 4,
|
2019-08-04 14:25:44 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"from IPython.display import Markdown as md\n",
|
2019-08-04 17:28:43 +00:00
|
|
|
"from IPython.display import DisplayHandle\n",
|
2019-08-04 14:25:44 +00:00
|
|
|
"import pandas as pd\n",
|
2019-08-04 17:28:43 +00:00
|
|
|
"from pathlib import Path\n",
|
|
|
|
"from datetime import datetime"
|
2019-08-04 14:25:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2019-08-04 17:28:43 +00:00
|
|
|
"execution_count": 8,
|
2019-08-04 14:43:06 +00:00
|
|
|
"metadata": {
|
|
|
|
"tags": [
|
|
|
|
"parameters"
|
|
|
|
]
|
|
|
|
},
|
2019-08-04 14:25:44 +00:00
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2019-08-04 14:43:06 +00:00
|
|
|
"tribe = \"308\"\n",
|
|
|
|
"assessment = \"161114_dm2\"\n",
|
2019-08-04 14:25:44 +00:00
|
|
|
"csv_file = Path(f\"./sheets/{tribe}/{assessment}.csv\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2019-08-04 17:28:43 +00:00
|
|
|
"execution_count": 9,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"split_ass = assessment.split(\"_\")\n",
|
|
|
|
"if len(split_ass) > 1:\n",
|
|
|
|
" date, *assessment = assessment.split(\"_\")\n",
|
|
|
|
" date = datetime.strptime(date, \"%y%m%d\")\n",
|
|
|
|
" assessment = ' '.join(assessment)\n",
|
|
|
|
"else:\n",
|
|
|
|
" date = None\n",
|
|
|
|
" assessment = split_ass[0]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 16,
|
2019-08-04 14:25:44 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/markdown": [
|
2019-08-04 17:28:43 +00:00
|
|
|
"# dm2 (14/11/2016) pour 308"
|
2019-08-04 14:25:44 +00:00
|
|
|
],
|
|
|
|
"text/plain": [
|
|
|
|
"<IPython.core.display.Markdown object>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {},
|
2019-08-04 17:28:43 +00:00
|
|
|
"output_type": "display_data"
|
2019-08-04 14:25:44 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2019-08-04 17:28:43 +00:00
|
|
|
"if date is None:\n",
|
|
|
|
" display(md(f\"# {assessment} pour {tribe}\"))\n",
|
|
|
|
"else:\n",
|
|
|
|
" display(md(f\"# {assessment} ({date:%d/%m/%Y}) pour {tribe}\"))"
|
2019-08-04 14:25:44 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"celltoolbar": "Tags",
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Python 3",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
2019-08-04 17:28:43 +00:00
|
|
|
"version": "3.7.4"
|
2019-08-04 14:25:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 2
|
|
|
|
}
|