Skip to main content

DynamicSelect

Use the DynamicSelect gem to dynamically filter columns of your dataset based on a set of conditions to avoid hard-coding your choice of columns.

Parameters

ParameterDescription
ConfigurationWhether to filter the columns visually or with code.
  • Select field types: Use checkboxes to select column types to keep in the dataset, such as string, decimal, or date.
  • Select via expression: Create an expression that limits the type of columns to keep in the dataset.

Example

Let's say you have the following table with weather prediction data.

DatePrediction - DateTemperatureCelsius - IntegerHumidityPercent - IntegerWindSpeed - FloatCondition - String
2025-03-01156510.0Sunny
2025-03-02177012.2Cloudy
2025-03-03166811.0Rainy
2025-03-0414729.8Sunny

Remove columns using field type

Assume you would like to remove irrelevant float and string columns from your dataset. You can do so with the Select field types method by selecting all field types to maintain, except for float and string.

Remove columns with an expression

Using the same example, you can accomplish the same task with the Select via expression method by inputting the the expression column_type NOT IN ('Float', 'String').

note

Be aware that column types are case sensitive. Use the same format shown in the input table schemas in the gem configuration.

Result

DatePrediction - DateTemperatureCelsius - IntegerHumidityPercent - Integer
2025-03-011565
2025-03-021770
2025-03-031668
2025-03-041472