Created
March 15, 2024 15:44
-
-
Save yamaneko1212/c6455de0118b79075232defb97135ed2 to your computer and use it in GitHub Desktop.
Djnago ViewにPygwalkerを組み込む
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
{{ pyg | safe }} | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pyg_view(request): | |
data = pandas.DataFrame([...]) | |
context = { | |
"pygwalkrer": pygwalker.walk(data, return_html=True).to_html(), | |
} | |
return render(request, "pygwalker.html", context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment