Description Usage Arguments Details Value
Given items data, with columns 'hash_str', 'title', 'prediction', extract columns grams, ounces, pounds, milligrams, pills, quantity
1 | addGreppedPatterns(itemsTuple)
|
itemsTuple |
name of dataframe with items data, described above |
Grams is the information associated with grams, e.g. "half gram" or "10g", etc., and similarly for ounces and pounds. Milligrams can be both milligrams and micrograms. Pills refers to pills, tabs, tablet, blotters. In the absence of any of the preceding information, we extract a beginning numeric quantity in the item title. For example, in the title "10 credit cards," 10 will be extracted.
dataframe with six columns added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.