> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebrainbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Row Group

A `Row` object in SDK corresponds to a single row in a worker's table.

## Initialize

You can either initialize a `Row` from scratch, or using an already initialized `Table` object, both methods are shown below.

<CodeGroup>
  ```javascript Node.js theme={null}
  import {Brainbase, Row} from "brainbase-ai"

  // From scratch
  const row = Row(api_key="YOUR_API_KEY", table_id="TABLE_ID", row_id="ROW_ID")

  // From table
  const row = table.row(id="ROW_ID")
  ```

  ```python Python theme={null}
  pip install brainbase-ai
  ```
</CodeGroup>

## Populate

The SDK provides a convenience function for populating a column in the specified row. This will extract the necessary information and fill in the column for the row.

<CodeGroup>
  ```javascript Node.js theme={null}
  import {Brainbase, Row} from "brainbase-ai"

  row.populate(column_keys=["KEY_1", "KEY_2"])
  ```

  ```python Python theme={null}
  pip install brainbase-ai
  ```
</CodeGroup>

## Delete

<CodeGroup>
  ```javascript Node.js theme={null}
  import {Brainbase, Row} from "brainbase-ai"

  row.delete()
  ```

  ```python Python theme={null}
  pip install brainbase-ai
  ```
</CodeGroup>

## Run Action

You can run a worker action on a selected row using the `run` function. How to create `Action`.

<CodeGroup>
  ```javascript Node.js theme={null}
  import {Brainbase, Row} from "brainbase-ai"

  row.run(action)
  ```

  ```python Python theme={null}
  pip install brainbase-ai
  ```
</CodeGroup>
