Skip to content

Commit

Permalink
Adding information about how to use column renaming in expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
coddingtonbear committed May 26, 2021
1 parent 6d5a31c commit fda8274
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,41 @@ source: my_csv_file.csv
</tbody>
</table>

It's also possible for you to set better names for your columns or use
expressions:

~~~
```csvtable
columns:
- name as "Country Name"
- population / 1000000 as "Population (Millions)"
source: my_csv_file.csv
```
~~~

<table>
<thead>
<tr>
<th>Country Name</th>
<th>Population (Millions)</th>
</tr>
</thead>
<tbody>
<tr>
<td>United States of America</td>
<td>328.2</td>
</tr>
<tr>
<td>Colombia</td>
<td>50.34</td>
</tr>
<tr>
<td>Russia</td>
<td>144.4</td>
</tr>
</tbody>
</table>

### Filtering displayed rows

Maybe you would like to display only a subset of the rows of your CSV?
Expand Down

0 comments on commit fda8274

Please sign in to comment.