Skip to content

data preprocessing #13

Answered by tomyun
oralb asked this question in Q&A
Discussion options

You must be logged in to vote

As you mentioned, unitfy() function can take a DataFrame and assign measurement units or certain data types to its columns. When the name of column is in the form of "name_of_column (unit_or_type)", the unit_or_type part becomes subject to automatic unit/type assignment.

  1. Here are some examples of handling units.
  • "leaf_area (cm)" becomes "leaf_area" column with u"cm" unit, i.e. Quantity{Float64, ...}.
  • "A_net (μmol/m^2/s)" becomes "A_net" column with u"μmol/m^2/s" unit.
  1. In the case of type assignment, currently we only support one keyword :date.
  • "observation (:date)" becomes "observation" column where date-formatted strings (e.g. "2022-11-26") are explicitly converted to Date type (e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomyun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants