profile.to_file("your_report.html") #1495
Unanswered
niharpalem
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how to resolve this error
`---------------------------------------------------------------------------
TemplateSyntaxError Traceback (most recent call last)
/Users/niharpalem/Desktop/cursor_codes/stark/smarteda.ipynb Cell 18 line <cell line: 1>()
----> 1 profile.to_file("your_report.html")
File ~/opt/anaconda3/lib/python3.9/site-packages/ydata_profiling/profile_report.py:355, in ProfileReport.to_file(self, output_file, silent)
352 self.config.html.assets_prefix = str(output_file.stem) + "_assets"
353 create_html_assets(self.config, output_file)
--> 355 data = self.to_html()
357 if output_file.suffix != ".html":
358 suffix = output_file.suffix
File ~/opt/anaconda3/lib/python3.9/site-packages/ydata_profiling/profile_report.py:470, in ProfileReport.to_html(self)
462 def to_html(self) -> str:
463 """Generate and return complete template as lengthy string
464 for using with frameworks.
465
(...)
468
469 """
--> 470 return self.html
File ~/opt/anaconda3/lib/python3.9/site-packages/ydata_profiling/profile_report.py:277, in ProfileReport.html(self)
274 @Property
275 def html(self) -> str:
...
---> 21 {% for value in row['value'] +%}
22 {{ value }}{% if loop.last and 'hint' in row %} {{ row['hint'] }}{% endif %}
23 {% endfor %}
TemplateSyntaxError: unexpected 'end of statement block'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...`
Beta Was this translation helpful? Give feedback.
All reactions