Skip to content

Commit 38edac5

Browse files
SunsetWolfLinlang
andauthored
fix docs (#1618)
Co-authored-by: Linlang <[email protected]>
1 parent b4b7a2f commit 38edac5

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

docs/component/data.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,11 @@ Users can also provide their own data in CSV format. However, the CSV data **mus
140140
141141
where the data are in the following format:
142142

143-
.. code-block::
144-
145-
symbol,close
146-
SH600000,120
143+
+-----------+-------+
144+
| symbol | close |
145+
+===========+=======+
146+
| SH600000 | 120 |
147+
+-----------+-------+
147148

148149
- CSV file **must** includes a column for the date, and when dumping the data, user must specify the date column name. Here is an example:
149150

@@ -153,11 +154,13 @@ Users can also provide their own data in CSV format. However, the CSV data **mus
153154
154155
where the data are in the following format:
155156

156-
.. code-block::
157-
158-
symbol,date,close,open,volume
159-
SH600000,2020-11-01,120,121,12300000
160-
SH600000,2020-11-02,123,120,12300000
157+
+---------+------------+-------+------+----------+
158+
| symbol | date | close | open | volume |
159+
+=========+============+=======+======+==========+
160+
| SH600000| 2020-11-01 | 120 | 121 | 12300000 |
161+
+---------+------------+-------+------+----------+
162+
| SH600000| 2020-11-02 | 123 | 120 | 12300000 |
163+
+---------+------------+-------+------+----------+
161164

162165

163166
Supposed that users prepare their CSV format data in the directory ``~/.qlib/csv_data/my_data``, they can run the following command to start the conversion.

0 commit comments

Comments
 (0)