Skip to content

Commit

Permalink
Docs: update transform docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickm663 committed Jan 30, 2024
1 parent 6da3676 commit a7c29a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ My TODO over the next while is:
- [x] Add tests
- [x] Better error handling
- [x] Compile docs and run tests using Actions
- [x] Check for valid country x table x group combos
- [x] Add function to transform long-form `DataFrames` into $age \times year$ `DataFrames`
- [ ] Think about how to handle 'secret' credentials (testing and general use)
- [ ] Check for valid country x table x group combos
- [ ] Make it compatible with [MortalityTables.jl](https://github.com/JuliaActuary/MortalityTables.jl)

## License
Expand Down
4 changes: 2 additions & 2 deletions src/HMD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function get_tables()::Dict{String, String}
end

"""
`get_groups()`
`get_groups()::Vector{String}`
Returns a `Vector` of valid groupings (i.e. "1x1", "1x5", etc.)
"""
Expand All @@ -235,7 +235,7 @@ function get_groups()::Vector{String}
end

"""
``transform(df::DataFrame, col::Symbol)::Union{Nothing, DataFrame}`
`transform(df::DataFrame, col::Symbol)::Union{Nothing, DataFrame}`
Returns a `DataFrame` structured age x year for a given feature (e.g. :Total)
"""
Expand Down

0 comments on commit a7c29a7

Please sign in to comment.