Hello,
*Does the DataFrames package or the DataFramesMeta package provide
syntax/functions you can use to filter for rows that contain a value that's
in a specific set or that matches a specific pattern, similar to Pandas in
Python?*
For example in Pandas in Python:
*# 1. Row Value Is In Set of Interest*
set_of_interest = [7, 8]
data_frame_value_in_set =
data_frame[data_frame['quality'].isin(set_of_interest)]
*# 2. Row Value Matches Specific Pattern*
data_frame_value_matches_pattern =
data_frame[data_frame['quality'].astype(str).str.contains("red")]
I've watched the Intro to DataFrames YouTube video and read many online
tutorials and blog posts, and I haven't found any good examples for these
two row filtering cases. The closest I've gotten in the Set of Interest
case is the following Julia/DataFrames code, but it won't scale well when
the set contains many more values:
*data_frame_value_in_set = data_frame[(data_frame[:quality] .== 7) |
(data_frame[:quality] .== 8), :]*
Thank you very much for your time and help!
Sincerely,
Clinton