datamole-ai / edvart

An open-source Python library for Data Scientists & Data Analysts designed to simplify the exploratory data analysis process. Using Edvart, you can explore data sets and generate reports with minimal coding.
https://datamole-ai.github.io/edvart/
MIT License
48 stars 7 forks source link

Add warning when calling show on an empty report #196

Closed tsabata-datamole closed 9 months ago

tsabata-datamole commented 10 months ago

Starting with the library, it is easy to get trapped with:

from edvart.report import Report
import plotly.offline as py

py.init_notebook_mode()

report = Report(df)
report.show()

It passes, but nothing happens.

Although the doc mentions, the report is empty by default. Showing a warning that the report is empty when user calls show() would be helpful.

The warning could suggest using DefaultReport or add_* methods.