Closed
Description
Would it be possible to add brief code snippets underneath key methods/properties in order to quickly communicate usage/use cases?
I'd love to contribute if that's something that would be useful to others as well.
ex: In the case of the ColumnAttribute.Ordinal Property, if there was a "Code Sample" section right above/below the "Applies To" header, I think that would be very clear and helpful. The sample could be something as simple as what already exists in some of the tutorials/intros:
// Brief explanation, ex:
// Data is loaded without headers/labels, and the ColumnAttribute.Ordinal Property
// is used to define the identity of different data elements (columns) based on index.
public class TaxiTrip
{
[Column(ordinal: "0")]
public string vendor_id;
[Column(ordinal: "1")]
public string rate_code;
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 8d2663c1-ff59-7fa8-0fa4-c85c3099974e
- Version Independent ID: ef149bec-3b58-b29a-d71e-7a786ef27ac7
- Content: ColumnAttribute Class (Microsoft.ML.Runtime.Api)
- Content Source: dotnet/xml/Microsoft.ML.Runtime.Api/ColumnAttribute.xml
- GitHub Login: @dotnet-bot
Metadata
Metadata
Assignees
Labels
No labels