DATASET GET NUM COLUMNS

Counts and returns the number of columns in a given dataset. Use this worker whenever a downstream step needs to know the column width of a dataset at runtime, e.g. for dynamic branching or validation logic.

When to use

Classification: process.

Tagged: columns, dataset, inspection, metadata, shape.

Inputs

Label ID Type Default Required Description
Dataset dataset dataset   The input dataset whose column count will be measured; accepts any tabular dataset object — leave empty only if the column count is not yet needed at this workflow stage.

Outputs

Label ID Type Description
Number of Columns num_columns scalar Integer scalar representing the total number of columns present in the input dataset.

Disciplines

  • data.dataset.transform
  • data.statistics

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=dataset_get_num_columns


Auto-generated from transformation schema. Worker id: dataset_get_num_columns. Schema hash: 9840a0eb0225. Hand-curated docs in workerexamples/ override this page when present.