<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[weixin_45925478的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/weixin_45925478</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_45925478]]></copyright><item><title><![CDATA[excel之奇奇怪怪]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/123526033</link><guid>https://blog.csdn.net/weixin_45925478/article/details/123526033</guid><author>weixin_45925478</author><pubDate>Wed, 16 Mar 2022 14:40:40 +0800</pubDate><description><![CDATA[1.替换
替换*
不能直接替换‘’ ，需要‘~’

]]></description><category></category></item><item><title><![CDATA[sql-函数]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/121207933</link><guid>https://blog.csdn.net/weixin_45925478/article/details/121207933</guid><author>weixin_45925478</author><pubDate>Mon, 08 Nov 2021 15:03:20 +0800</pubDate><description><![CDATA[1.日期加减函数（Hive）
注：只能识别“yyyy-mm-dd”日期格式
1.1日期减少函数: date_sub
语法: date_sub (string startdate, int days)
返回值: string
说明:返回开始日期startdate减少days天后的日期。
举例：
hive&gt; select date_sub('2012-12-08',10) from lxw_dual;

1.2日期增加函数：date_add
语法: date_add (string startdate, ]]></description><category></category></item><item><title><![CDATA[Sql-case when 两种方式比较]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/120294672</link><guid>https://blog.csdn.net/weixin_45925478/article/details/120294672</guid><author>weixin_45925478</author><pubDate>Tue, 14 Sep 2021 19:57:07 +0800</pubDate><description><![CDATA[A. 使用带有简单 CASE 表达式的 SELECT 语句
在一个SELECT语句中，一个简单的CASE表达式只允许进行相等检查；没有进行其他比较。
select skuid,
case city_name when 'BJ' then '北京'
			when 'SH' then '上海'
			when 'GZ' then '广州'
			else '中国'
			end '城市',
			skuname,skuprice
			from xxxx;


B. 使用带有搜索的 CASE 表达式的 SEL]]></description><category></category></item><item><title><![CDATA[SQL-排序]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/108583368</link><guid>https://blog.csdn.net/weixin_45925478/article/details/108583368</guid><author>weixin_45925478</author><pubDate>Mon, 14 Sep 2020 17:17:34 +0800</pubDate><description><![CDATA[row_number
排名逻辑
1.二级分类为肉禽蛋、酒水饮料、粮油副食的按三级分类排名
2.二级分类为’日配’,‘休闲零食’,‘海鲜水产’,‘蔬菜’,‘水果’,‘家居厨卫’,'个护美妆’按二级分类排名
3.一级分类为加工食品的按一级分类排名
select * ,ROW_NUMBER() over(parititon by city,cat1,cat2,cat3 order by sales desc) as row_num FROM mart_mall_dev.mt_all where cat2 in("]]></description><category></category></item><item><title><![CDATA[sql-窗口函数]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/108089687</link><guid>https://blog.csdn.net/weixin_45925478/article/details/108089687</guid><author>weixin_45925478</author><pubDate>Tue, 18 Aug 2020 23:09:35 +0800</pubDate><description><![CDATA[窗口函数用法：
&lt;窗口函数&gt; OVER ( [PARTITION BY &lt;列清单&gt; ]
ORDER BY &lt;排序用列清单&gt; ）
partition by 能够设定排序的对象范围，类似于group by语句，（非必须 ）
可作为窗口函数
1.聚合函数（sum，avg，count，max，min）
2.专用窗口函数rank，dense_rank、row_number
窗口函数的适用范围：只能在select子句中使用
用于排序的专用窗口函数
1、RANK()
在计算排序时，若存]]></description><category></category></item><item><title><![CDATA[python数据清洗]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/107437839</link><guid>https://blog.csdn.net/weixin_45925478/article/details/107437839</guid><author>weixin_45925478</author><pubDate>Tue, 21 Jul 2020 23:20:36 +0800</pubDate><description><![CDATA[目录1.导入excel文件1.1批量导入指定文件及汇总1.2批量导入多sheet的excel文件2.查看数据信息3.值处理3.1条件筛选赋值3.2设置哑变量3.3缺失值处理3.4字符串3.5 删除符合条件的行数3.6 分组汇总3.7日期格式转换4.重命名5.按行（列）拼接表格6.导出excel
1.导入excel文件
import pandas as pd
pd.read_excel(io, sheet_name=0, header=0, names=None, index_col=None, 
     ]]></description><category></category></item><item><title><![CDATA[python报错合集]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/107436478</link><guid>https://blog.csdn.net/weixin_45925478/article/details/107436478</guid><author>weixin_45925478</author><pubDate>Sun, 19 Jul 2020 19:14:18 +0800</pubDate><description><![CDATA[1.数字为字符串类型
TypeError: (“unsupported operand type(s) for /: ‘str’ and ‘str’”, ‘occurred at index 0’)
虽然输入的是数字，但python认定为字符串类型，应在前加上int() 或者float()
2.值类型转换错误
ValueError: invalid literal for int() with base 10
int()函数是可以将字符串转换为整形，但是这个字符串如果是带小数的，比如‘25.5’,这个时候如]]></description><category></category></item><item><title><![CDATA[小红书销售额预测模型-线性回归]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106410303</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106410303</guid><author>weixin_45925478</author><pubDate>Thu, 28 May 2020 21:39:08 +0800</pubDate><description><![CDATA[数据：
数据链接
提取码: j4cd
仅作为自己学习数据分析的过程记录
1.指标解释
revenue ：用户的下单购买金额
3rd_party_stores： 用户过往在app中从第三方商家购买的数量，0表示购买的自营产品
gender：男1 女0 空缺unkown
age :年龄 空缺unkown
engaged_last_30:最近30天在app上有参与重点活动
lifecycle ：生命周期A：注册6个月内
B：一年内
C：两年内
days_since_last_order 最近一次下单距今的天数（小]]></description><category></category></item><item><title><![CDATA[sqlzoo 错题整理]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106289884</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106289884</guid><author>weixin_45925478</author><pubDate>Fri, 22 May 2020 20:19:14 +0800</pubDate><description><![CDATA[select names

2.subject in()  返回布尔值
3.字符串中存在单引号时，用两个单引号代替



]]></description><category></category></item><item><title><![CDATA[R画图]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106263599</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106263599</guid><author>weixin_45925478</author><pubDate>Thu, 21 May 2020 17:49:33 +0800</pubDate><description><![CDATA[R画图
1.一幅图中多条线
方法一 用lines、points函数
超实用画图
方法二
在第二个plot函数中添加参数 add=T
plot(performance(pred1, "tpr", "fpr"), col="red", lwd = 1.5, main = "ROC Curves",lty=1,pch=15)
plot(performance(pred2, "tpr", "fpr"), add = T, col = "blue", lwd = 1.5,lty=1,pch=16)
plot(perf]]></description><category></category></item><item><title><![CDATA[卡方检验、分层卡方检验]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106231567</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106231567</guid><author>weixin_45925478</author><pubDate>Wed, 20 May 2020 11:28:11 +0800</pubDate><description><![CDATA[转载：卡方分布
分层卡方检验—spss
卡方检验—R

]]></description><category></category></item><item><title><![CDATA[sample选取随机样本]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106214200</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106214200</guid><author>weixin_45925478</author><pubDate>Tue, 19 May 2020 15:01:14 +0800</pubDate><description><![CDATA[在数据框中选取随机样本
sample(x, size, replace = FALSE, prob = NULL)
x      要么是一个或多个元素的向量，要么选择一个正整数，要么是一个正整数
size 要抽取的样本个数
replace 是否放回抽样（默认不放回）
prob 比例
1.导入数据read.csv()
结果如下

2.在上表中随机选取n个样本
n2&lt;-nrow(A2) #计算表行数
testdata1&lt;- A2[sample(n2,size = 260,replace = F),]]]></description><category></category></item><item><title><![CDATA[R常用函数]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106108175</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106108175</guid><author>weixin_45925478</author><pubDate>Wed, 13 May 2020 23:40:27 +0800</pubDate><description><![CDATA[5.13
查看对象类型的函数
mode、class、typeof
d&lt;-data.frame(c1=letters[1:3],c2=1:3,c3=c(1,2,3),stringAsFactor=F)
&gt; sapply(d,mode)
            c1             c2             c3  
     "numeric"      "numeric"      "numeric"      
&gt; sapply(d,class)
            c1]]></description><category></category></item><item><title><![CDATA[日期常用函数（R）]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/106107517</link><guid>https://blog.csdn.net/weixin_45925478/article/details/106107517</guid><author>weixin_45925478</author><pubDate>Wed, 13 May 2020 22:07:00 +0800</pubDate><description><![CDATA[日期变量常用函数





函数
功能




Sys.date
返回系统当前时间


Sys.time
返回系统当前的日期和时间


date
以字符串形式返回系统当前的日期和时间


as.date（x，format=“”,…）
将字符串形式的日期值转换为日期变量


format（x，）
将日期变量转化为指定格式的字符串


strftime(x,format)
将日期变量转换为指定格式的字符型变量


strptime(x,format,tz=" ")
将字符型变量转换为包含时间...]]></description><category></category></item><item><title><![CDATA[MDS数据降维]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/105664500</link><guid>https://blog.csdn.net/weixin_45925478/article/details/105664500</guid><author>weixin_45925478</author><pubDate>Tue, 21 Apr 2020 18:18:45 +0800</pubDate><description><![CDATA[原理：
机器学习算法——MDS降维算法

]]></description><category></category></item><item><title><![CDATA[R绘图有关函数]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/105652429</link><guid>https://blog.csdn.net/weixin_45925478/article/details/105652429</guid><author>weixin_45925478</author><pubDate>Tue, 21 Apr 2020 13:19:30 +0800</pubDate><description><![CDATA[**
一、制作矩形框
rect函数
绘制一个或多个矩形描述符绘制一个带有给定坐标、填充和边框颜色的矩形(或矩形序列)。
rect(xleft, ybottom, xright, ytop, density = NULL, angle = 45,
col = NA, border = NULL, lty = par(“lty”), lwd = par(“lwd”),  …)




argument...]]></description><category></category></item><item><title><![CDATA[数据分析思维导图]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/105231568</link><guid>https://blog.csdn.net/weixin_45925478/article/details/105231568</guid><author>weixin_45925478</author><pubDate>Wed, 01 Apr 2020 22:40:45 +0800</pubDate><description><![CDATA[1.流量分析

2.路径分析
路径分析是基于用户的所有行为去挖掘若干条重要的用户路径，通过优化界面内交互让产品用起来更加流畅和符合用户习惯，产生更多价值。
日志：用户在app内所有的行为都是以表或者文件存储，记录了用户详细行为信息。
3.竞品分析
1.准备进入某行业时——侧重行业规模和前景
2.产品发展处于下降时——侧重头部玩家的玩法分析
3.产品遇到瓶颈时——持续监控竞品的数据和功能迭代，寻找突...]]></description><category></category></item><item><title><![CDATA[关于R常报错问题及解决办法（持续更新中）]]></title><link>https://blog.csdn.net/weixin_45925478/article/details/105025752</link><guid>https://blog.csdn.net/weixin_45925478/article/details/105025752</guid><author>weixin_45925478</author><pubDate>Sun, 22 Mar 2020 12:30:42 +0800</pubDate><description><![CDATA[1.导入数据时，将数据框中数据转化数值型报错
方案：unlist（）
as.numeric.(unlist())

2.无法使用rstudio或者R安装程序包
Warning in install.packages:unable to access index for respository
原因可能是镜像问题，重新选一个镜像
方案：
chooseCRANmirror() #选择相应的镜像——国内...]]></description><category></category></item></channel></rss>