You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your bug may already be reported!
Please search on the issue tracker before creating one.
Description
data_describe summary method requires jinja when using pandas dataframe style method. WIthout the jinja2 dependency, the summary table may render with a lot of information missing.
Stacktrace:
File ~/Software/anaconda3/envs/model-promotion/lib/python3.9/site-packages/data_describe/core/summary.py:104, in SummaryWidget.show(self, viz_backend, as_percentage, auto_float, **kwargs)
101 format_dict[col] = _value_formatter
103 if len(format_dict) > 0:
--> 104 view(summary_data.style.format(format_dict))
105 else:
106 view(summary_data)
File ~/Software/anaconda3/envs/model-promotion/lib/python3.9/site-packages/pandas/core/frame.py:1212, in DataFrame.style(self)
1200 https://github.com/Property
1201 def style(self) -> Styler:
1202 """
1203 Returns a Styler object.
1204
(...)
1210 data with HTML and CSS.
1211 """
-> 1212 from pandas.io.formats.style import Styler
1214 return Styler(self)
File ~/Software/anaconda3/envs/model-promotion/lib/python3.9/site-packages/pandas/io/formats/style.py:52, in <module>
48 from pandas.core.shared_docs import _shared_docs
50 from pandas.io.formats.format import save_to_buffer
---> 52 jinja2 = import_optional_dependency("jinja2", extra="DataFrame.style requires jinja2.")
54 from pandas.io.formats.style_render import (
55 CSSProperties,
56 CSSStyles,
(...)
64 refactor_levels,
65 )
67 try:
File ~/Software/anaconda3/envs/model-promotion/lib/python3.9/site-packages/pandas/compat/_optional.py:141, in import_optional_dependency(name, extra, errors, min_version)
139 except ImportError:
140 if errors == "raise":
--> 141 raise ImportError(msg)
142 else:
143 return None
ImportError: Missing optional dependency 'Jinja2'. DataFrame.style requires jinja2. Use pip or conda to install Jinja2.
Steps to Reproduce
uninstall jinja2 from python environment
install data_describe
call data_summary method on pandas dataframe, in data_describe/core/summary.py (I'm not sure what the dataframe should have, exactly, to produce the issue)
Your bug may already be reported!
Please search on the issue tracker before creating one.
Description
data_describe summary method requires jinja when using pandas dataframe
style
method. WIthout the jinja2 dependency, the summary table may render with a lot of information missing.Stacktrace:
Steps to Reproduce
data_summary
method on pandas dataframe, indata_describe/core/summary.py
(I'm not sure what the dataframe should have, exactly, to produce the issue)Possible Solution
in
requirements.txt
:Your Environment
The text was updated successfully, but these errors were encountered: