pythonic生物人

excel中优雅使用Python可视化工具

介绍一个python excel工具pyxll,可在Excel中使用Python的主流可视化工具,如Seaborn等。


pyxll安装

pip install pyxll
pyxll install
pip install pyxll-jupyter

重启下Excel,出现如下Jupyter按钮,

Image

Excel中使用seaborn

pyxll结合seaborn定义一个sns_plot函数,

from pyxll import plot, xl_func
import seaborn as sns

@xl_func
def sns_plot():
    penguins = sns.load_dataset("penguins")

    # histogram plot
    sns.histplot(data=penguins, x="flipper_length_mm", hue="species", multiple="stack")
    plot()

excel中使用sns_plot函数,

Image

更多例子,Image

-END-
分享一份原创Python可视化教程(基于py可视化利器seaborn):530张图形+8000行代码+详细代码注释+后续免费更新+学习交流群,教程部分内容,

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

每类图表包含详细代码+详细代码注释,多达8000行代码,例如,Image


如何加入学习?

👇加入学习(收费、备注:169)

Image

✅解锁获取6大权限:

  1. 8000+行代码(复制即可运行)
  2. 在线教程文档(清晰目录)
  3. 依赖数据(免费下载)
  4. 交流群
  5. 后续更新
  6. 定期抽最新机器学习、数据科学类书籍