Commit 42a32873 authored by Peter Jentsch's avatar Peter Jentsch
Browse files

remove Pandas dependency

parent 950b4d36
This diff is collapsed.
......@@ -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"
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment