<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[红泥小火炉的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/m0_46589710</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; m0_46589710]]></copyright><item><title><![CDATA[mac上anaconda在.bash_profile中的信息不小心删除了怎么办]]></title><link>https://blog.csdn.net/m0_46589710/article/details/115894755</link><guid>https://blog.csdn.net/m0_46589710/article/details/115894755</guid><author>m0_46589710</author><pubDate>Tue, 20 Apr 2021 10:15:04 +0800</pubDate><description><![CDATA[人都有手抖的时候，比如打开.bash_profile写PATH的时候，不小心把anaconda 的信息删掉了一半，作为一个懒人，手动补全是不太可能的，所以如下操作
source &lt;path to conda&gt;/bin/activate

run conda init

如果在安装anaconda的时候，面对这个问题
“Do you wish the installer to initialize Anaconda3 by running conda init?”
选择了否，但是安装完成以后改主意]]></description><category></category></item><item><title><![CDATA[R语言 正态性检验 Q-Q plot shapiro test]]></title><link>https://blog.csdn.net/m0_46589710/article/details/115768714</link><guid>https://blog.csdn.net/m0_46589710/article/details/115768714</guid><author>m0_46589710</author><pubDate>Fri, 16 Apr 2021 22:16:39 +0800</pubDate><description><![CDATA[目录需要的packages可视化方法1. density plot2. Q-Q plotShapiro-Wilk’s normality test单变量Shapiro test成组数据Shapiro test多个变量Shapiro test
需要的packages
library(tidyverse)
library(ggpubr)
library(rstatix)

使用ToothGrowth数据进行分析，对变量len进行正态性检验。
可视化方法
1. density plot
# Density plo]]></description><category></category></item><item><title><![CDATA[R语言 ggplot2 一页多图方法 ggpubr::ggarrange()]]></title><link>https://blog.csdn.net/m0_46589710/article/details/115726691</link><guid>https://blog.csdn.net/m0_46589710/article/details/115726691</guid><author>m0_46589710</author><pubDate>Thu, 15 Apr 2021 15:45:16 +0800</pubDate><description><![CDATA[R语言 ggplot2 一页多图方法 ggpubr::ggarrange()
# 载入packages
library(ggplot2)
library(ggpubr)

# 生成数据
x &lt;- seq(1,10,0.01) * pi
e &lt;- rnorm(length(x), mean = 0, sd=0.2)
fx &lt;- sin(x) + e + sqrt(x)
dat = data.frame(x=x, fx=fx)

# 作图
p0 = ggplot(dat,aes(x,fx))+]]></description><category></category></item><item><title><![CDATA[DataFrame.query和 DataFrame.eval的用法]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105405611</link><guid>https://blog.csdn.net/m0_46589710/article/details/105405611</guid><author>m0_46589710</author><pubDate>Thu, 09 Apr 2020 11:14:34 +0800</pubDate><description><![CDATA[DataFrame.query()
DataFrame.query(self, expr, inplace=False, **kwargs)
Query the columns of a DataFrame with a boolean expression.
import pandas as pd
df = pd.DataFrame({'A': range(1, 6),
...         ...]]></description><category></category></item><item><title><![CDATA[时间序列index的strftime()方法]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105384960</link><guid>https://blog.csdn.net/m0_46589710/article/details/105384960</guid><author>m0_46589710</author><pubDate>Wed, 08 Apr 2020 12:34:32 +0800</pubDate><description><![CDATA[格式化
描述




%y
两位数的年份表示（00-99）


%Y
四位数的年份表示（000-9999）


%m
月份（01-12）


%d
月内中的一天（0-31）


%H
24小时制小时数（0-23）


%I
12小时制小时数（01-12）


%M
分钟数（00=59）


%S
秒（00-59）


%a
本地简化星期名称


%A
本地完整星期名称


%b
本地简化的...]]></description><category></category></item><item><title><![CDATA[pandas时间序列之 pd.to_datetime()]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105383299</link><guid>https://blog.csdn.net/m0_46589710/article/details/105383299</guid><author>m0_46589710</author><pubDate>Wed, 08 Apr 2020 11:30:34 +0800</pubDate><description><![CDATA[解析来自各种来源和格式的时间序列信息
pd.to_datetime(
    arg,#int, float, str, datetime, list, tuple, 1-d array, Series DataFrame/dict-like
    errors='raise',# {'ignore', 'raise', 'coerce'}, default 'raise'
    dayfir...]]></description><category></category></item><item><title><![CDATA[pandas 时间序列之pd.date_range()]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105383077</link><guid>https://blog.csdn.net/m0_46589710/article/details/105383077</guid><author>m0_46589710</author><pubDate>Wed, 08 Apr 2020 11:26:30 +0800</pubDate><description><![CDATA[pd.date_range(
    start=None,#开始时间
    end=None,#截止时间
    periods=None,#总长度
    freq=None,#时间间隔
    tz=None,#时区
    normalize=False,#是否标准化到midnight
    name=None,#date名称
    closed=None,#首尾是否在内
    *...]]></description><category></category></item><item><title><![CDATA[matplotlib显示中文最万无一失永不出错的办法（Mac系统）]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105360825</link><guid>https://blog.csdn.net/m0_46589710/article/details/105360825</guid><author>m0_46589710</author><pubDate>Tue, 07 Apr 2020 11:40:44 +0800</pubDate><description><![CDATA[MAC查看字体
fc-list 查看当前系统下支持的字体
fc-list :lang=zh 查看当前系统下支持的中文字体
from matplotlib import font_manager
my_font = font_manager.FontProperties(fname=‘字体路径’)
family指定很麻烦，容易写错
使用示例
from matplotlib import pyplot...]]></description><category></category></item><item><title><![CDATA[[异常]Failed to process string with tex because latex could not be found]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105237111</link><guid>https://blog.csdn.net/m0_46589710/article/details/105237111</guid><author>m0_46589710</author><pubDate>Wed, 01 Apr 2020 02:33:38 +0800</pubDate><description><![CDATA[环境：anaconda
使用jupyter notebook尝试plt.text()报出异常：RuntimeError: Failed to process string with tex because latex could not be found
尝试解决方法1：
pip install latex
安装成功
运行仍旧报出该异常。
到anaconda的官方网站搜索，找到答案
https:/...]]></description><category></category></item><item><title><![CDATA[python频数统计value_counts和groupby方法]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105176445</link><guid>https://blog.csdn.net/m0_46589710/article/details/105176445</guid><author>m0_46589710</author><pubDate>Sun, 29 Mar 2020 13:20:46 +0800</pubDate><description><![CDATA[python频数统计和groupby方法频数统计groupby方法
频数统计
先用字典类型的数据创建一个DataFrame，test_data
import pandas as pd
test_data = pd.DataFrame({
    'x1': ["a", "b", "c", "b"],
    "x2": [1, 2, 3, 4],
    "x3": [4, 3, 2, 1]
})...]]></description><category></category></item><item><title><![CDATA[100以内的素数之和，for循环的奖励else]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105107331</link><guid>https://blog.csdn.net/m0_46589710/article/details/105107331</guid><author>m0_46589710</author><pubDate>Sun, 29 Mar 2020 11:27:51 +0800</pubDate><description><![CDATA[基础@python入门
sum = 0
for i in range(2, 100):
     for j in range(2,i):
          if i%j == 0:
               break
     else:
          print(i)
          sum += i
print('sum:{}'.format(sum))


...]]></description><category></category></item><item><title><![CDATA[在jupyter中用python和R完成t检验]]></title><link>https://blog.csdn.net/m0_46589710/article/details/105151381</link><guid>https://blog.csdn.net/m0_46589710/article/details/105151381</guid><author>m0_46589710</author><pubDate>Fri, 27 Mar 2020 22:10:30 +0800</pubDate><description><![CDATA[jupyter notebook中python与R完成T test的比较
#单样本双侧t检验的实现方法
# 导入子模块stats
from scipy import stats
#导入numpy
import numpy as np
#生成随机数种子
np.random.seed(0)
data = np.random.randint(500, 540,20)#生成20个500-540之间的整数
...]]></description><category></category></item></channel></rss>