Skip to content

Commit b72b89e

Browse files
committed
Provide extra pointers to operations with DataFrame type argument
1 parent 62ab8a3 commit b72b89e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/StardustDocs/topics/adjustSchema.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
[`DataFrame`](DataFrame.md) interface has type argument `T` that doesn't affect contents of [`DataFrame`](DataFrame.md),
44
but marks [`DataFrame`](DataFrame.md) with a type that represents data schema that this [`DataFrame`](DataFrame.md) is supposed to have.
5-
This argument is used to generate [extension properties](extensionPropertiesApi.md) for typed data access.
5+
This argument is used to generate [extension properties](extensionPropertiesApi.md) for typed data access.
6+
7+
Another place where this argument has special role is [interop with data classes](collectionsInterop.md#interop-with-data-classes):
8+
* `List<T>` -> `DataFrame<T>`: [toDataFrame](createDataFrame.md#todataframe)
9+
* `DataFrame<T>` -> `List<T>`: [toList](toList.md)
610

711
Actual data in [`DataFrame`](DataFrame.md) may diverge from compile-time schema marker `T` due to dynamic nature of data inside [`DataFrame`](DataFrame.md).
812
However, at some points of code you may know exactly what [`DataFrame`](DataFrame.md) schema is expected.

0 commit comments

Comments
 (0)