I.何をする
2019年の日本の輸出、輸入相手国の第一位は中国ですが、Pythonで次のリンクにあるように輸出相手国、輸入相手国の一覧をTreemapにします。
https://oec.world/en/profile/country/jpn
II.PlotlyでTreemapを作成する方法
次に解説にしたがってTreemapの描き方を学びます。
Treemap in Python (plotly)
サンプルを作成しました。
Google Colaboratoryで公開しました。
https://colab.research.google.com/drive/1Ar3cWbmDLcmguL6fdZzBL0q1nLlwxyrA?usp=sharing
作成したグラフです。実際にはカーソルをおくと数値が示されるインターアクティブなグラフです。

III.日本の輸出相手国と輸入相手国
About shibatau
I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school.
I'm interested in new technology, especially machine learning
and have been learning R language for two years and began to learn Python last summer.
Listening toParamore, Sia, Amazarashi and MIyuki Nakajima.
Favorite movies I've recently seen: "FREEHELD".
Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro.
Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences".
Favorite phrase: Salvation by Faith.
Twitter: @shibatau