docs: rename data to JSON and dataframe to table#12352
docs: rename data to JSON and dataframe to table#12352mendonk wants to merge 5 commits intorelease-1.9.0from
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This comment has been minimized.
This comment has been minimized.
|
Build successful! ✅ |
aimurphy
left a comment
There was a problem hiding this comment.
approved with some suggestions/questions
| | Name | Type | Description | | ||
| |------|------|-------------| | ||
| | data_inputs | Data/DataFrame | The data with documents to split in chunks. | | ||
| | data_inputs | JSON/Table | The data with documents to split in chunks. | |
There was a problem hiding this comment.
Optional, out of scope
| | data_inputs | JSON/Table | The data with documents to split in chunks. | | |
| | data_inputs | JSON or Table | The data with documents to split in chunks. | |
| | Name | Type | Description | | ||
| |------|------|-------------| | ||
| | data_inputs | Data/DataFrame | The data with documents to export. | | ||
| | data_inputs | JSON/Table | The data with documents to export. | |
There was a problem hiding this comment.
| | data_inputs | JSON/Table | The data with documents to export. | | |
| | data_inputs | JSON or Table | The data with documents to export. | |
| | Name | Display Name | Info | | ||
| |------|--------------|------| | ||
| | data | Data | Input parameter. The `Data` object to operate on. | | ||
| | data | JSON | Input parameter. The `JSON` object to operate on. | |
There was a problem hiding this comment.
To avoid confusion with any regular JSON object, it might be worth reiterating here that this must be the JSON data type (i.e. it cannot be JSON within a table or message).
| | data | JSON | Input parameter. The `JSON` object to operate on. | | |
| | data | JSON | Input parameter. The `JSON` object to operate on. Must be provided as `JSON` data type input generated by another component. If the preceding component doesn't produce `JSON` output, use the [**Type Convert** component](/type-convert) to reformat the data before passing it to the **JSON Operations** component. | |
| Use the **JQ Expressions** operation to use the [jq](https://jqlang.org/) query language to perform more advanced JSON filtering. | ||
| 1. In the **Operations** dropdown, select **JQ Expression**. | ||
| 2. In the **JQ Expression** field, enter a `jq` filter to query against the **Data Operations** component's Data input. | ||
| 2. In the **JQ Expression** field, enter a `jq` filter to query against the **JSON Operations** component's JSON input. |
There was a problem hiding this comment.
| 2. In the **JQ Expression** field, enter a `jq` filter to query against the **JSON Operations** component's JSON input. | |
| 2. In the **JQ Expression** field, enter a `jq` filter to query against the **JSON Operations** component's **JSON** input. |
| The **DataFrame Operations** component performs operations on [`DataFrame`](/data-types#dataframe) (table) rows and columns, including schema changes, record changes, sorting, and filtering. | ||
| For all options, see [DataFrame Operations parameters](#dataframe-operations-parameters). | ||
| :::tip | ||
| Prior to Langflow 1.9.0, this component was named **Data Operations**. |
There was a problem hiding this comment.
| Prior to Langflow 1.9.0, this component was named **Data Operations**. | |
| Prior to Langflow 1.9.0, this component was named **DataFrame Operations**. |
|
|
||
| **Data** ports <Icon name="Circle" size="16" aria-label="Red data port" style={{ color: '#dc2626', fill: '#dc2626' }} /> accept or produce the `Data` type, which is a structured data object, like a JSON payload that you might send to an API. | ||
| :::tip | ||
| Prior to version 1.9.0, the JSON port was called `Data`. |
There was a problem hiding this comment.
Optional
| Prior to version 1.9.0, the JSON port was called `Data`. | |
| In Langflow version 1.9.0, the `Data` type and port were renamed to `JSON`. |
| - `default_value`: Fallback if `text_key` is missing. The default `text_key` is `"text"`. | ||
|
|
||
| ```python | ||
| data_obj = Data( |
There was a problem hiding this comment.
JSON or Json?
| data_obj = JSON( |
| ## Table | ||
|
|
||
| :::tip | ||
| Prior to version 1.9.0, the Table port was called `DataFrame`. |
There was a problem hiding this comment.
| Prior to version 1.9.0, the Table port was called `DataFrame`. | |
| In Langflow version 1.9.0, the `DataFrame` type and port were renamed to `Table`. |
| - Renamed `Data` and `DataFrame` types | ||
|
|
||
| The `Data` object is now named `JSON`, and the `DataFrame` object is now named `Table`. | ||
| The **Data Operations** component is now the [**JSON Operations** component](/data-operations), and the **DataFrame Operations** component is now the [**Table Operations** component](/dataframe-operations). |
There was a problem hiding this comment.
I think I would separate the sentence about the component names into it's own bullet - Renamed the **Data Operations** and **DataFrame Operations** components
| { | ||
| type: "doc", | ||
| id: "Components/data-operations", | ||
| label: "JSON Operations", | ||
| }, | ||
| { | ||
| type: "doc", | ||
| id: "Components/dataframe-operations", | ||
| label: "Table Operations", | ||
| }, |
There was a problem hiding this comment.
The page title is the same a the label so you can still use the shorthand.
| { | |
| type: "doc", | |
| id: "Components/data-operations", | |
| label: "JSON Operations", | |
| }, | |
| { | |
| type: "doc", | |
| id: "Components/dataframe-operations", | |
| label: "Table Operations", | |
| }, | |
| "Components/data-operations", | |
| "Components/dataframe-operations", |
#11554
Mostly find and replace except for:
Release notes
Data types