Skip to content

Commit bc287d8

Browse files
committed
Ajustes
1 parent 86c61b8 commit bc287d8

5 files changed

Lines changed: 261 additions & 19 deletions

File tree

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ indent_size = 4
2020
[*.md]
2121
indent_size = 2
2222

23-
2423
# Sobreescrever Geral
2524
[*.yml]
2625
indent_size = 2

docs/.readthedocs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ mkdocs:
7070
# Optionally, but recommended,
7171
# declare the Python requirements required to build your documentation
7272
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
73-
# python:
74-
# install:
75-
# - requirements: docs/requirements.txt
73+
python:
74+
install:
75+
- requirements: docs/requirements.txt

docs/scripts/listas.ipynb

Lines changed: 256 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": null,
27+
"execution_count": 1,
2828
"id": "d037b267",
2929
"metadata": {},
3030
"outputs": [],
@@ -48,21 +48,102 @@
4848
},
4949
{
5050
"cell_type": "code",
51-
"execution_count": null,
51+
"execution_count": 2,
5252
"id": "8a20998f",
5353
"metadata": {},
54-
"outputs": [],
54+
"outputs": [
55+
{
56+
"data": {
57+
"text/html": [
58+
"<div>\n",
59+
"<style scoped>\n",
60+
" .dataframe tbody tr th:only-of-type {\n",
61+
" vertical-align: middle;\n",
62+
" }\n",
63+
"\n",
64+
" .dataframe tbody tr th {\n",
65+
" vertical-align: top;\n",
66+
" }\n",
67+
"\n",
68+
" .dataframe thead th {\n",
69+
" text-align: right;\n",
70+
" }\n",
71+
"</style>\n",
72+
"<table border=\"1\" class=\"dataframe\">\n",
73+
" <thead>\n",
74+
" <tr style=\"text-align: right;\">\n",
75+
" <th></th>\n",
76+
" <th>SG_UF</th>\n",
77+
" <th>DS_UF</th>\n",
78+
" </tr>\n",
79+
" </thead>\n",
80+
" <tbody>\n",
81+
" <tr>\n",
82+
" <th>0</th>\n",
83+
" <td>AC</td>\n",
84+
" <td>ACRE</td>\n",
85+
" </tr>\n",
86+
" <tr>\n",
87+
" <th>1</th>\n",
88+
" <td>AL</td>\n",
89+
" <td>ALAGOAS</td>\n",
90+
" </tr>\n",
91+
" <tr>\n",
92+
" <th>2</th>\n",
93+
" <td>AM</td>\n",
94+
" <td>AMAZONAS</td>\n",
95+
" </tr>\n",
96+
" <tr>\n",
97+
" <th>3</th>\n",
98+
" <td>AP</td>\n",
99+
" <td>AMAPÁ</td>\n",
100+
" </tr>\n",
101+
" <tr>\n",
102+
" <th>4</th>\n",
103+
" <td>BA</td>\n",
104+
" <td>BAHIA</td>\n",
105+
" </tr>\n",
106+
" </tbody>\n",
107+
"</table>\n",
108+
"</div>"
109+
],
110+
"text/plain": [
111+
" SG_UF DS_UF\n",
112+
"0 AC ACRE\n",
113+
"1 AL ALAGOAS\n",
114+
"2 AM AMAZONAS\n",
115+
"3 AP AMAPÁ\n",
116+
"4 BA BAHIA"
117+
]
118+
},
119+
"execution_count": 2,
120+
"metadata": {},
121+
"output_type": "execute_result"
122+
}
123+
],
55124
"source": [
56125
"lista = cfm.Lista(lista='estado')\n",
57126
"lista.as_dataframe.head()"
58127
]
59128
},
60129
{
61130
"cell_type": "code",
62-
"execution_count": null,
131+
"execution_count": 3,
63132
"id": "9b676c47",
64133
"metadata": {},
65-
"outputs": [],
134+
"outputs": [
135+
{
136+
"name": "stdout",
137+
"output_type": "stream",
138+
"text": [
139+
"[{'DS_UF': 'ACRE', 'SG_UF': 'AC'},\n",
140+
" {'DS_UF': 'ALAGOAS', 'SG_UF': 'AL'},\n",
141+
" {'DS_UF': 'AMAZONAS', 'SG_UF': 'AM'},\n",
142+
" {'DS_UF': 'AMAPÁ', 'SG_UF': 'AP'},\n",
143+
" {'DS_UF': 'BAHIA', 'SG_UF': 'BA'}]\n"
144+
]
145+
}
146+
],
66147
"source": [
67148
"pprint.pprint(lista.as_json[:5])"
68149
]
@@ -81,21 +162,102 @@
81162
},
82163
{
83164
"cell_type": "code",
84-
"execution_count": null,
165+
"execution_count": 4,
85166
"id": "53397f61",
86167
"metadata": {},
87-
"outputs": [],
168+
"outputs": [
169+
{
170+
"data": {
171+
"text/html": [
172+
"<div>\n",
173+
"<style scoped>\n",
174+
" .dataframe tbody tr th:only-of-type {\n",
175+
" vertical-align: middle;\n",
176+
" }\n",
177+
"\n",
178+
" .dataframe tbody tr th {\n",
179+
" vertical-align: top;\n",
180+
" }\n",
181+
"\n",
182+
" .dataframe thead th {\n",
183+
" text-align: right;\n",
184+
" }\n",
185+
"</style>\n",
186+
"<table border=\"1\" class=\"dataframe\">\n",
187+
" <thead>\n",
188+
" <tr style=\"text-align: right;\">\n",
189+
" <th></th>\n",
190+
" <th>ID_ESPECIALIDADE</th>\n",
191+
" <th>DS_ESPECIALIDADE</th>\n",
192+
" </tr>\n",
193+
" </thead>\n",
194+
" <tbody>\n",
195+
" <tr>\n",
196+
" <th>0</th>\n",
197+
" <td>66</td>\n",
198+
" <td>ACUPUNTURA</td>\n",
199+
" </tr>\n",
200+
" <tr>\n",
201+
" <th>1</th>\n",
202+
" <td>97</td>\n",
203+
" <td>ADMINISTRAÇÃO EM SAÚDE</td>\n",
204+
" </tr>\n",
205+
" <tr>\n",
206+
" <th>2</th>\n",
207+
" <td>1</td>\n",
208+
" <td>ADMINISTRAÇÃO HOSPITALAR</td>\n",
209+
" </tr>\n",
210+
" <tr>\n",
211+
" <th>3</th>\n",
212+
" <td>2</td>\n",
213+
" <td>ALERGIA E IMUNOLOGIA</td>\n",
214+
" </tr>\n",
215+
" <tr>\n",
216+
" <th>4</th>\n",
217+
" <td>98</td>\n",
218+
" <td>ALERGIA E IMUNOPATOLOGIA</td>\n",
219+
" </tr>\n",
220+
" </tbody>\n",
221+
"</table>\n",
222+
"</div>"
223+
],
224+
"text/plain": [
225+
" ID_ESPECIALIDADE DS_ESPECIALIDADE\n",
226+
"0 66 ACUPUNTURA\n",
227+
"1 97 ADMINISTRAÇÃO EM SAÚDE\n",
228+
"2 1 ADMINISTRAÇÃO HOSPITALAR\n",
229+
"3 2 ALERGIA E IMUNOLOGIA\n",
230+
"4 98 ALERGIA E IMUNOPATOLOGIA"
231+
]
232+
},
233+
"execution_count": 4,
234+
"metadata": {},
235+
"output_type": "execute_result"
236+
}
237+
],
88238
"source": [
89239
"lista = cfm.Lista(lista='especialidade')\n",
90240
"lista.as_dataframe.head()"
91241
]
92242
},
93243
{
94244
"cell_type": "code",
95-
"execution_count": null,
245+
"execution_count": 5,
96246
"id": "636b5dbb",
97247
"metadata": {},
98-
"outputs": [],
248+
"outputs": [
249+
{
250+
"name": "stdout",
251+
"output_type": "stream",
252+
"text": [
253+
"[{'DS_ESPECIALIDADE': 'ACUPUNTURA', 'ID_ESPECIALIDADE': '66'},\n",
254+
" {'DS_ESPECIALIDADE': 'ADMINISTRAÇÃO EM SAÚDE', 'ID_ESPECIALIDADE': '97'},\n",
255+
" {'DS_ESPECIALIDADE': 'ADMINISTRAÇÃO HOSPITALAR', 'ID_ESPECIALIDADE': '1'},\n",
256+
" {'DS_ESPECIALIDADE': 'ALERGIA E IMUNOLOGIA', 'ID_ESPECIALIDADE': '2'},\n",
257+
" {'DS_ESPECIALIDADE': 'ALERGIA E IMUNOPATOLOGIA', 'ID_ESPECIALIDADE': '98'}]\n"
258+
]
259+
}
260+
],
99261
"source": [
100262
"pprint.pprint(lista.as_json[:5])"
101263
]
@@ -114,21 +276,102 @@
114276
},
115277
{
116278
"cell_type": "code",
117-
"execution_count": null,
279+
"execution_count": 6,
118280
"id": "73eb64fc",
119281
"metadata": {},
120-
"outputs": [],
282+
"outputs": [
283+
{
284+
"data": {
285+
"text/html": [
286+
"<div>\n",
287+
"<style scoped>\n",
288+
" .dataframe tbody tr th:only-of-type {\n",
289+
" vertical-align: middle;\n",
290+
" }\n",
291+
"\n",
292+
" .dataframe tbody tr th {\n",
293+
" vertical-align: top;\n",
294+
" }\n",
295+
"\n",
296+
" .dataframe thead th {\n",
297+
" text-align: right;\n",
298+
" }\n",
299+
"</style>\n",
300+
"<table border=\"1\" class=\"dataframe\">\n",
301+
" <thead>\n",
302+
" <tr style=\"text-align: right;\">\n",
303+
" <th></th>\n",
304+
" <th>ID_AREA_ATUACAO</th>\n",
305+
" <th>DS_AREA_ATUACAO</th>\n",
306+
" </tr>\n",
307+
" </thead>\n",
308+
" <tbody>\n",
309+
" <tr>\n",
310+
" <th>0</th>\n",
311+
" <td>2</td>\n",
312+
" <td>Administração Hospitalar</td>\n",
313+
" </tr>\n",
314+
" <tr>\n",
315+
" <th>1</th>\n",
316+
" <td>1</td>\n",
317+
" <td>Administração em Saúde</td>\n",
318+
" </tr>\n",
319+
" <tr>\n",
320+
" <th>2</th>\n",
321+
" <td>81</td>\n",
322+
" <td>Adolescência</td>\n",
323+
" </tr>\n",
324+
" <tr>\n",
325+
" <th>3</th>\n",
326+
" <td>3</td>\n",
327+
" <td>Alergia e Imunologia Pediátrica</td>\n",
328+
" </tr>\n",
329+
" <tr>\n",
330+
" <th>4</th>\n",
331+
" <td>4</td>\n",
332+
" <td>Andrologia</td>\n",
333+
" </tr>\n",
334+
" </tbody>\n",
335+
"</table>\n",
336+
"</div>"
337+
],
338+
"text/plain": [
339+
" ID_AREA_ATUACAO DS_AREA_ATUACAO\n",
340+
"0 2 Administração Hospitalar\n",
341+
"1 1 Administração em Saúde\n",
342+
"2 81 Adolescência\n",
343+
"3 3 Alergia e Imunologia Pediátrica\n",
344+
"4 4 Andrologia"
345+
]
346+
},
347+
"execution_count": 6,
348+
"metadata": {},
349+
"output_type": "execute_result"
350+
}
351+
],
121352
"source": [
122353
"lista = cfm.Lista(lista='atuação')\n",
123354
"lista.as_dataframe.head()"
124355
]
125356
},
126357
{
127358
"cell_type": "code",
128-
"execution_count": null,
359+
"execution_count": 7,
129360
"id": "0a9339c6",
130361
"metadata": {},
131-
"outputs": [],
362+
"outputs": [
363+
{
364+
"name": "stdout",
365+
"output_type": "stream",
366+
"text": [
367+
"[{'DS_AREA_ATUACAO': 'Administração Hospitalar', 'ID_AREA_ATUACAO': '2'},\n",
368+
" {'DS_AREA_ATUACAO': 'Administração em Saúde', 'ID_AREA_ATUACAO': '1'},\n",
369+
" {'DS_AREA_ATUACAO': 'Adolescência', 'ID_AREA_ATUACAO': '81'},\n",
370+
" {'DS_AREA_ATUACAO': 'Alergia e Imunologia Pediátrica', 'ID_AREA_ATUACAO': '3'},\n",
371+
" {'DS_AREA_ATUACAO': 'Andrologia', 'ID_AREA_ATUACAO': '4'}]\n"
372+
]
373+
}
374+
],
132375
"source": [
133376
"pprint.pprint(lista.as_json[:5])"
134377
]

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ plugins:
134134
- mkdocs-jupyter:
135135
ignore_h1_titles: True
136136
include_source: True
137-
execute: true
137+
execute: false
138138
show_input: True # Default True
139139
no_input: False # Default False
140140
#ignore: [ '1*.ipynb' ]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'pycfm'
3-
version = '0.4.2'
3+
version = '0.4.3'
44
description = 'Obtem dados de médicos acessando informações do Conselho Federal de Medicina'
55
authors = [{ name = 'michelmetran', email = 'michelmetran@gmail.com' }]
66
keywords = ['CRM', 'CFM', 'github', 'médicos']

0 commit comments

Comments
 (0)