Skip to content

Commit

Permalink
docs: Update for DefaultReport
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelak-dtml committed Aug 1, 2023
1 parent 080d2e1 commit a11ca42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Report class
------------

The most important class of the package :py:class:`~edvart.report.Report`.
This class allows you to specify :ref:`verbosity <verbosity>` or specify which columns should be used.
The report consists of sections, which can be added via methods of the `Report` class.
The report is empty by default.
The class :py:class:`~edvart.report.DefaultReport` is a subclass of `Report`,
which contains a default set of sections.

With created instance of `Report` you can:

Expand Down Expand Up @@ -141,7 +144,7 @@ Or you can set section verbosity (described later).
import edvart
df = edvart.example_datasets.dataset_titanic()
report = edvart.Report(df, columns_overview=["Name", "Survived"], use_default_sections=False)
report = edvart.Report(df)
report.add_overview(omit_columns=["PassengerId"]).add_univariate_analysis(
use_columns=["Name", "Sex", "Age"]
Expand Down Expand Up @@ -176,7 +179,7 @@ Examples:
import edvart
df = edvart.example_datasets.dataset_titanic()
edvart.Report(df, verbosity=1).export_notebook("test-export.ipynb")
edvart.DefaultReport(df, verbosity=1).export_notebook("test-export.ipynb")
.. code-block:: python
Expand All @@ -185,4 +188,4 @@ Examples:
import edvart
df = edvart.example_datasets.dataset_titanic()
edvart.Report(df, verbosity=1, verbosity_univariate_analysis=2).export_notebook("test-export.ipynb")
edvart.DefaultReport(df, verbosity=1, verbosity_univariate_analysis=2).export_notebook("test-export.ipynb")
6 changes: 3 additions & 3 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Getting started
import edvart
df = edvart.example_datasets.dataset_titanic()
edvart.Report(df).show()
edvart.DefaultReport(df).show()
2. Generate report notebook

.. code-block:: python
import edvart
df = edvart.example_datasets.dataset_titanic()
report = edvart.Report(df)
report = edvart.DefaultReport(df)
report.export_notebook("titanic_report.ipynb")
You can modify the generated notebook if you want to modify some settings.
Expand All @@ -28,7 +28,7 @@ For more advanced usage of edvart, please read the documentation section
import edvart
df = edvart.example_datasets.dataset_titanic()
report = edvart.Report(df)
report = edvart.DefaultReport(df)
report.export_html(
html_filepath="titanic_report.html",
dataset_name="Titanic",
Expand Down

0 comments on commit a11ca42

Please sign in to comment.