table
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
table.type
Members list
Type members
Classlikes
Options for handling headers in tabular data.
Options for handling headers in tabular data.
This enum provides different strategies for obtaining column headers when reading data from sources like CSV files or Excel spreadsheets.
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
HeaderOptions.type
Specifies how to read CSV data.
Specifies how to read CSV data.
Rows: ReturnsCsvIterator[K, V]- lazy row-by-row iterationColumns: ReturnsNamedTuple[K, (Array[T1], Array[T2], ...)]- eager column arraysArrayDenseColMajor[T]: Returns a single dense array in column-major orderArrayDenseRowMajor[T]: Returns a single dense array in row-major order
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Enumeration of strategies for inferring column types when reading CSV files.
Enumeration of strategies for inferring column types when reading CSV files.
FirstRow: Infers types by inspecting only the first row of data.FirstN: Infers types by inspecting the firstnrows. Optionally, prefersIntoverBooleanif both are possible.FromAllRows: Infers types by inspecting all rows in the CSV.StringType: Disables type inference; all columns are read asString.FromTuple[T]: Uses a user-supplied tuple typeTfor decoding, allowing custom or manual type specification.
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TypeInferrer.type
Exports
Defined exports
Read Excel file from an absolute path with compile-time type inference
Read Excel file from an absolute path with compile-time type inference
Value parameters
- filePath
-
Absolute path to the Excel file
- range
-
Optional cell range, empty string reads entire sheet. Either fully specified ("A1:C10"), or a top left anchor whose open edges are discovered at compile time the way
ctrl-rightandctrl-downdiscover them in Excel - "A1" infers both edges, "A1:C" pins the columns, "A1:10" pins the rows - sheetName
-
Name of the Excel sheet to read
- typeInferrer
-
Type inference strategy (StringType or FromTuple supported)
Attributes
- Returns
-
ExcelIterator with inferred types
A tagged column read from a CSV with blanks arrives as Option[Tag]; render through the inner format. None stays "None" so untagged output is unchanged.
A tagged column read from a CSV with blanks arrives as Option[Tag]; render through the inner format. None stays "None" so untagged output is unchanged.
Attributes
Read an Excel file at a path relative to the discovered project root, with compile-time type inference.
Read an Excel file at a path relative to the discovered project root, with compile-time type inference.
The root is the first ancestor of the calling source file holding a build marker (build.mill, build.sbt, .git, ...). In a notebook or REPL there is no source file on disk to search upwards from, so the root is discovered from the working directory instead and a compile time warning says so.
Value parameters
- filePath
-
Path to the Excel file, relative to the project root
- range
-
Optional cell range, empty string reads entire sheet. Either fully specified ("A1:C10"), or a top left anchor whose open edges are discovered at compile time the way
ctrl-rightandctrl-downdiscover them in Excel - "A1" infers both edges, "A1:C" pins the columns, "A1:10" pins the rows - sheetName
-
Name of the Excel sheet to read
- typeInferrer
-
Type inference strategy (StringType or FromTuple supported)
Attributes
- Returns
-
ExcelIterator with inferred types
Read an Excel file at a path relative to the source file this is called from, with compile-time type inference.
Read an Excel file at a path relative to the source file this is called from, with compile-time type inference.
The path is anchored to the calling source file rather than to the compiler's working directory, so it resolves the same way no matter where the build was invoked from. In a notebook or REPL there is no source file on disk, so the path resolves against the working directory instead and a compile time warning says so.
Value parameters
- filePath
-
Path to the Excel file, relative to the calling source file
- range
-
Optional cell range, empty string reads entire sheet. Either fully specified ("A1:C10"), or a top left anchor whose open edges are discovered at compile time the way
ctrl-rightandctrl-downdiscover them in Excel - "A1" infers both edges, "A1:C" pins the columns, "A1:10" pins the rows - sheetName
-
Name of the Excel sheet to read
- typeInferrer
-
Type inference strategy (StringType or FromTuple supported)
Attributes
- Returns
-
ExcelIterator with inferred types
Read Excel file from the classpath, configured with an ExcelOpts.
Read Excel file from the classpath, configured with an ExcelOpts.
Use this when you need an option the positional overloads do not expose, such as skipFooter.
Value parameters
- filePath
-
Path to the Excel file in the classpath
- opts
-
Range, type inference and footer handling
- sheetName
-
Name of the Excel sheet to read
Attributes
- Returns
-
ExcelIterator with inferred types
Read Excel file from the classpath with compile-time type inference
Read Excel file from the classpath with compile-time type inference
Value parameters
- filePath
-
Path to the Excel file in the classpath
- range
-
Optional cell range, empty string reads entire sheet. Either fully specified ("A1:C10"), or a top left anchor whose open edges are discovered at compile time the way
ctrl-rightandctrl-downdiscover them in Excel - "A1" infers both edges, "A1:C" pins the columns, "A1:10" pins the rows - sheetName
-
Name of the Excel sheet to read
- typeInferrer
-
Type inference strategy (StringType or FromTuple supported)
Attributes
- Returns
-
ExcelIterator with inferred types