Skip to content

Commit c46bdef

Browse files
committed
update doc
1 parent d2de82c commit c46bdef

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

doc/analysis/advances.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In [1]: price_average = (LAST('open') + LAST('high') + LAST('low') + LAST('close
2121

2222
```python
2323
In [2]: data = dict(aapl=dict(open=2., high=4., low=1., close=3.),
24-
...: ibm=dict(open=6., high=7., low=4., close=7.))
24+
......: ibm=dict(open=6., high=7., low=4., close=7.))
2525
```
2626

2727
推送数据:

doc/analysis/basics.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ In [3]: value_holder.push({'s1': {'x': 2}})
3333

3434
```python
3535
In [4]: value_holder.value
36-
Out[4]:
37-
s1 2.0
38-
dtype: float64
36+
Out[4]: SeriesValues({'s1': 2.0})
3937
```
4038

4139
这个结果表示,符号``s1``关于依赖``'x'````MA``运算结果为:``2.0``
@@ -50,9 +48,7 @@ In [6]: value_holder.push({'s1': {'x': 3}})
5048

5149
```python
5250
In [6]: value_holder.value
53-
Out[6]:
54-
s1 2.5
55-
dtype: float64
51+
Out[6]: SeriesValues({'s1': 2.5})
5652
```
5753

5854
我们仍然可以继续:
@@ -65,8 +61,6 @@ In [7]: value_holder.push({'s1': {'x': 4}})
6561

6662
```python
6763
In [8]: value_holder.value
68-
Out[8]:
69-
s1 3.5
70-
dtype: float64
64+
Out[8]: SeriesValues({'s1': 3.5})
7165
```
7266

doc/analysis/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
* *表达力与性能兼顾*
2424

25-
``Finance-Python`` 在很多情况下与``pandas````groupby``操作有相近的性能,但是确有更加强的表达力和扩展能力
25+
``Finance-Python`` 在很多情况下与``pandas````groupby``操作有相近的性能,但是却有更加强的表达力和扩展能力

doc/analysis/reference.md

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* `ASINH`
2323
* `SHIFT`
2424
* `IIF`
25+
* `MAXIMUM`
26+
* `MINIMUM`
2527

2628
## Windowed value holders
2729

@@ -46,3 +48,4 @@
4648
* `CSMeanAdjusted`
4749
* `CSQuantile`
4850
* `CSZScore`
51+
* `CSRes`

doc/dates/basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Out[8]: datetime.datetime(2017, 3, 20, 0, 0)
9595

9696
## 生成日程序列
9797

98-
可以按照固定的频率生成日程表:
98+
可以按照固定的频率生成日程表,下面的代码按照月度频率生成交易日
9999

100100
```python
101101
In [9]: makeSchedule('2017-01-01', '2017-12-31', '1m', 'china.sse')

doc/tutorial/hello_world.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Out[2]: '0.5.4'
2121
In [3]: from PyFin import api
2222
```
2323

24-
下面的代码获取2016年12月的所有工作日
24+
下面的代码获取上海证券交易所2016年12月的所有工作日
2525

2626
```python
2727
In [5]: api.bizDatesList('china.sse', '2016-12-01', '2016-12-31')

0 commit comments

Comments
 (0)