Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Peter Jentsch
CovidAlertABM
Commits
42a32873
Commit
42a32873
authored
Jun 29, 2021
by
Peter Jentsch
Browse files
remove Pandas dependency
parent
950b4d36
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
CovidAlertVaccinationModel/Manifest.toml
View file @
42a32873
This diff is collapsed.
Click to expand it.
CovidAlertVaccinationModel/Project.toml
View file @
42a32873
...
...
@@ -33,7 +33,6 @@ NamedTupleTools = "d9ec5142-1e00-5aa0-9d6a-321866360f50"
NetworkLayout
=
"46757867-2c16-5918-afeb-47bfcb05e46a"
OnlineStats
=
"a15396b6-48d5-5d58-9928-6d29437db91e"
PairPlots
=
"43a3c2be-4208-490b-832a-a21dcd55d7da"
Pandas
=
"eadc2687-ae89-51f9-a5d9-86b5a6373a9c"
Pipe
=
"b98c9c47-44ae-5843-9183-064241ee97a0"
Plots
=
"91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Printf
=
"de0858da-6303-5e67-8744-51eddeeeb8d7"
...
...
CovidAlertVaccinationModel/src/data.jl
View file @
42a32873
...
...
@@ -149,7 +149,8 @@ end
Load priors data from `data/canada-network-data/POLYMOD/AALPoisPriors.csv` and format into a DataFrame with some additional columns for the index of the age class (per `swap_dict`).
"""
function
get_priors
()
df
=
DataFrame
(
read_csv
(
"
$
PACKAGE_FOLDER/data/canada-network-data/POLYMOD/AALPoisPriors.csv"
))
df
=
DataFrame
(
CSV
.
File
(
"
$
PACKAGE_FOLDER/data/canada-network-data/POLYMOD/AALPoisPriors.csv"
))
display
(
df
)
df_w_indicies
=
transform
(
df
,
:
Age_in
=>
e
->
map
(
x
->
swap_dict
[
x
],
e
),
...
...
@@ -157,6 +158,7 @@ function get_priors()
:
Age_in
,
:
Age_out
)
rename!
(
df_w_indicies
,
Dict
(
:
Age_out_function
=>
"index_out"
,
:
Age_in_function
=>
"index_in"
))
display
(
df_w_indicies
)
return
df_w_indicies
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment