Skip to content

Commit

Permalink
pandas options
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-xone committed May 25, 2022
1 parent d5a7967 commit e858299
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Requirements

- Bloomberg C++ SDK version 3.12.1 or higher

- Visit `Bloomberg API Library`_ and downlaod C++ Supported Release
- Visit `Bloomberg API Library`_ and download C++ Supported Release

- In the ``bin`` folder of downloaded zip file, copy ``blpapi3_32.dll`` and ``blpapi3_64.dll`` to Bloomberg ``BLPAPI_ROOT`` folder (usually ``blp/DAPI``)

Expand Down
10 changes: 5 additions & 5 deletions xbbg/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def apply_fx(
where FX uses latest available price
Examples:
>>> pd.set_option('precision', 2)
>>> pd.options.display.precision = 2
>>> rms = (
... pd.read_pickle('xbbg/tests/data/sample_rms_ib1.pkl')
... .pipe(get_series, col='close')
Expand Down Expand Up @@ -124,7 +124,7 @@ def daily_stats(data: Union[pd.Series, pd.DataFrame], **kwargs) -> pd.DataFrame:
Daily stats for given data
Examples:
>>> pd.set_option('precision', 2)
>>> pd.options.display.precision = 2
>>> (
... pd.concat([
... pd.read_pickle('xbbg/tests/data/sample_rms_ib0.pkl'),
Expand Down Expand Up @@ -232,9 +232,9 @@ def since_year(data: pd.DataFrame, year: int) -> pd.DataFrame:
pd.DataFrame
Examples:
>>> pd.set_option('display.width', 120)
>>> pd.set_option('display.max_columns', 10)
>>> pd.set_option('precision', 2)
>>> pd.options.display.width = 120
>>> pd.options.display.max_columns = 10
>>> pd.options.display.precision = 2
>>> amzn = pd.read_pickle('xbbg/tests/data/sample_earning_amzn.pkl')
>>> amzn.query('level == 1').pipe(since_year, year=2017)
segment_name level fy2018 fy2017 fy2018_pct fy2017_pct
Expand Down

0 comments on commit e858299

Please sign in to comment.