Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Mar 19, 2024
1 parent 8a4e30d commit be80392
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,44 @@ Jupyter notebook providing VTL support through Trevas engine
Custom functions have been introduced into the Trevas engine.

| Name | Arguments | Description |
| ------------ | ------------------------ | ------------------------------------ |
|--------------|--------------------------|--------------------------------------|
| loadParquet | String url | Load Parquet dataset |
| loadCSV | String url | Load CSV dataset |
| loadCSV (1) | String url | Load CSV dataset |
| loadSas | String url | Load Sas dataset |
| writeParquet | (String url, Dataset ds) | Write given dataset in Parquet |
| writeCSV | (String url, Dataset ds) | Write given dataset in CSV |
| writeCSV (2) | (String url, Dataset ds) | Write given dataset in CSV |
| show | Dataset ds | Display firt rows of a given dataset |
| showMetadata | Dataset ds | Display metadata of a given dataset |
| size | Dataset ds | Display size of a given dataset |

### (1) loadCSV

Default option values:

| Name | Value |
|:-----------:|:-------:|
| header | true |
| delimiter | ; |
| quote | " |

Any CSV option can be defined or overridden thanks to url parameters (values have to be encoded).

For instance, to read a CSV content where delimiter is `|` and quote is `'`:

`loadCSV(...?delimiter=%7C&quote=%27)`

### (2) writeCSV

Default option values:

| Name | Value |
|:-----------:|:-------:|
| header | true |
| delimiter | ; |
| quote | " |

Any CSV option can be defined or overridden thanks to url parameters (values have to be encoded).

For instance, to write a CSV with a content delimited by `|` and quoted by `'`:

`writeCSV(...?delimiter=%7C&quote=%27)`

0 comments on commit be80392

Please sign in to comment.