Optionally check that a column exists before setting its values
Beliavsky opened this issue · comments
Beliavsky commented
For
subroutine set*(header,col)
character(len=*),intent(in) :: header
intr_type,dimension(col_size),intent(in) :: col
is a column named header
created if it does not exist? That is often what you want and is consistent with Python pandas, but sometimes you may create a column by accident by misspelling header
. Could you add an optional argument check_exists
that if .true. requires header
to already be present?
Joshua Aiken commented
Currently, only the append
subroutines create columns; however, I do like this suggestion and so I think I will implement this when I next get a chance. Thanks for the suggestion.