jaiken17 / fortranDF

FortranDF is a library that implements a data_frame data structure similar to those used in other languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optionally check that a column exists before setting its values

Beliavsky opened this issue · comments

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?

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.