Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
debpal committed Oct 13, 2024
1 parent dddc2e2 commit 696aeb2
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ Release Notes
===============


Version 0.1.5
---------------

* **Release date:** 13-Oct-2024

* **Feature Additions:**

* Introduced the :class:`BharatFinTrack.Visual` class for data visualization.
* Added the :meth:`BharatFinTrack.Visual.plot_category_sort_index_cagr_from_launch` method for plotting the descending sort of CAGR (%) by index category since inception.


Version 0.1.4
---------------

Expand Down
17 changes: 12 additions & 5 deletions docs/functionality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Functionality
A brief overview of several features related to making investment decisions.




Class Instance
----------------
Let's start by instantiating the classes.
Expand All @@ -17,6 +19,9 @@ Let's start by instantiating the classes.
nse_tri = BharatFinTrack.NSETRI()
.. _fucn_equity_index_price_cagr:

Equity Index Price CAGR
--------------------------

Expand All @@ -26,7 +31,7 @@ It helps users make informed decisions about investments in passive funds that t
.. code-block:: python
nse_index.sort_equity_cagr_from_launch(
excel_file=r"C:\Users\Username\Folder\sort_cagr.xlsx"
excel_file=r"C:\Users\Username\Folder\sort_price_cagr.xlsx"
)
Expand All @@ -37,10 +42,12 @@ better understand the difference in index returns across various categories
.. code-block:: python
nse_index.category_sort_equity_cagr_from_launch(
excel_file=r"C:\Users\Username\Folder\category_sort_cagr.xlsx"
excel_file=r"C:\Users\Username\Folder\sort_price_cagr_by_category.xlsx"
)
.. _fucn_equity_tri_cagr:

Equity TRI CAGR
------------------
Download the closing Total Return Index (TRI) values for all NSE indices. These values are not updated on the website on a daily basis.
Expand All @@ -64,13 +71,13 @@ The above Excel file will be used to sort the equity indices based on the CAGR (
# sort equity indices by CAGR (%) since launch
nse_tri.sort_equity_cagr_from_launch(
input_excel=excel_file,
output_excel=r"C:\Users\Username\Folder\sorted_tri_cagr.xlsx"
output_excel=r"C:\Users\Username\Folder\sort_tri_cagr.xlsx"
)
# sort equity indices by CAGR (%) since launch within each category
nse_tri.category_sort_equity_cagr_from_launch(
input_excel=excel_file,
output_excel=r"C:\Users\Username\Folder\category_sort_tri_cagr.xlsx"
output_excel=r"C:\Users\Username\Folder\sort_tri_cagr_by_category.xlsx"
)
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Welcome to BharatFinTrack's documentation!
quickstart
download
functionality
visualization
modules
changelog

Expand Down
1 change: 1 addition & 0 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ BharatFinTrack is a Python package designed to simplify the process of downloadi

- Calculates the updated CAGR (%) of all NSE equity index prices and TRI since their inception.
- Sorts equity indices by CAGR (%) values since inception.
- Plots the descending sort of CAGR (%) by index category since inception.

60 changes: 60 additions & 0 deletions docs/visualization.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
===============
Visualization
===============

A brief overview of several features related to data visualization.

Class Instance
----------------
Let's start by instantiating the class.

.. code-block:: python
import BharatFinTrack
visual = BharatFinTrack.Visual()
Equity Index Closing Values
-----------------------------

In this section, we plot a bar graph of equity index closing values, sorted in descending order of CAGR (%) by category.
To obtain the required data, use the Excel files generated from the :ref:`Equity Index Price CAGR <fucn_equity_index_price_cagr>`
and :ref:`Equity TRI CAGR <fucn_equity_tri_cagr>` sections. The following code produces a plot of the closing TRI values.
You can also experiment with index prices to observe differences in the results.


.. code-block:: python
excel_file = r"C:\Users\Username\Folder\tri_closing_value.xlsx"
# plot descending sort of TRI CAGR by category since launch
visual.plot_category_sort_index_cagr_from_launch(
excel_file=r"C:\Users\Username\Folder\sort_tri_cagr_by_category.xlsx"
figure_file=r"C:\Users\Username\Folder\plot_tri.png"
)
The output plot looks similar to the following figure subject to the change of closing values which chanage in each trading day.


.. image:: _static/tri_category_sort_cagr_from_launch.png
:align: left



















0 comments on commit 696aeb2

Please sign in to comment.