美文网首页
python 统计相关的资料

python 统计相关的资料

作者: xxxxxxxxxxxxxs | 来源:发表于2019-08-03 23:22 被阅读0次

    python 统计相关的资料

    python如何计算相关 附带几种相关系数的介绍https://blog.csdn.net/qq_30138291/article/details/79801777 

    箱线图

    https://wiki.mbalib.com/wiki/%E7%AE%B1%E7%BA%BF%E5%9B%BE

    matplotlib 画图如果数据是中文出现小方块问题

    参考  https://www.cnblogs.com/dearL/p/9374911.html

    首先要下载字体 SimHei.ttf (https://github.com/StellarCN/scp_zh/blob/master/fonts/SimHei.ttf)

    然后移到这个目录下  /Users/jiaxiaoshuang/anaconda/pkgs/matplotlib-2.0.2-np112py36_0/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf

    然后找到这个文件

    /Users/jiaxiaoshuang/anaconda/pkgs/matplotlib-2.0.2-np112py36_0/lib/python3.6/site-packages/matplotlib/mpl-data/matplotlibrc

    2、修改配置文件

               配置文件路径:anaconda安装路径\Lib\site-packages\matplotlib\mpl-data\matplotlibrc

            (1)将font.family         : sans-serif   前边的#号去掉

            (2)将 1#font.sans-serif     :DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif

      前边#号去掉,并增加SimHei,修改后为

    1font.sans-serif     :SimHei, DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif

    3、加载配置,使之生效,命令行输入以下指令(最重要的一步)

    >>python 

    >>>from matplotlib.font_manager import _rebuild

    >>>_rebuild()

    重启jupyter 就可以了

    相关文章

      网友评论

          本文标题:python 统计相关的资料

          本文链接:https://www.haomeiwen.com/subject/vctrdctx.html