From 38edac5069b6624fc6268d6f0b100ea763199b30 Mon Sep 17 00:00:00 2001 From: Linlang <30293408+SunsetWolf@users.noreply.github.com> Date: Wed, 2 Aug 2023 20:14:54 +0800 Subject: [PATCH] fix docs (#1618) Co-authored-by: Linlang --- docs/component/data.rst | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/component/data.rst b/docs/component/data.rst index 5a2d458f6..7cd2701a5 100644 --- a/docs/component/data.rst +++ b/docs/component/data.rst @@ -140,10 +140,11 @@ Users can also provide their own data in CSV format. However, the CSV data **mus where the data are in the following format: - .. code-block:: - - symbol,close - SH600000,120 + +-----------+-------+ + | symbol | close | + +===========+=======+ + | SH600000 | 120 | + +-----------+-------+ - 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: @@ -153,11 +154,13 @@ Users can also provide their own data in CSV format. However, the CSV data **mus where the data are in the following format: - .. code-block:: - - symbol,date,close,open,volume - SH600000,2020-11-01,120,121,12300000 - SH600000,2020-11-02,123,120,12300000 + +---------+------------+-------+------+----------+ + | symbol | date | close | open | volume | + +=========+============+=======+======+==========+ + | SH600000| 2020-11-01 | 120 | 121 | 12300000 | + +---------+------------+-------+------+----------+ + | SH600000| 2020-11-02 | 123 | 120 | 12300000 | + +---------+------------+-------+------+----------+ 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.