<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[jieru_liu的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ljr_123</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ljr_123]]></copyright><item><title><![CDATA[使用 Python 将若干个 PDF 文件合并到一个中]]></title><link>https://blog.csdn.net/ljr_123/article/details/128380160</link><guid>https://blog.csdn.net/ljr_123/article/details/128380160</guid><author>ljr_123</author><pubDate>Sun, 25 Dec 2022 15:45:00 +0800</pubDate><description><![CDATA[使用 Python 将若干个 PDF 文件合并到一个中]]></description><category></category></item><item><title><![CDATA[python批量发送带附件的邮件时，收到的附件名异常且后缀为bin，解决办法]]></title><link>https://blog.csdn.net/ljr_123/article/details/128298298</link><guid>https://blog.csdn.net/ljr_123/article/details/128298298</guid><author>ljr_123</author><pubDate>Sat, 17 Dec 2022 15:15:00 +0800</pubDate><description><![CDATA[使用python发送带附件邮件的时，收到bin格式的附件]]></description><category></category></item><item><title><![CDATA[pandas数据类型转换，astype与convert_dtypes]]></title><link>https://blog.csdn.net/ljr_123/article/details/125584658</link><guid>https://blog.csdn.net/ljr_123/article/details/125584658</guid><author>ljr_123</author><pubDate>Sun, 03 Jul 2022 15:19:46 +0800</pubDate><description><![CDATA[pandas数据类型转换，astype与convert_dtypes]]></description><category></category></item><item><title><![CDATA[pandas，根据某几列筛选出重复记录，is_unique与duplicated]]></title><link>https://blog.csdn.net/ljr_123/article/details/125451238</link><guid>https://blog.csdn.net/ljr_123/article/details/125451238</guid><author>ljr_123</author><pubDate>Sun, 26 Jun 2022 15:45:00 +0800</pubDate><description><![CDATA[is_unique与duplicated，根据一列某几列筛选重复记录]]></description><category></category></item><item><title><![CDATA[python，__mro__]]></title><link>https://blog.csdn.net/ljr_123/article/details/125035147</link><guid>https://blog.csdn.net/ljr_123/article/details/125035147</guid><author>ljr_123</author><pubDate>Sat, 04 Jun 2022 15:45:00 +0800</pubDate><description><![CDATA[__mro__：Method Resolution Order，显示指定类的继承顺序。如果这个指定的类，不具有某些方法或属性，但其某一代父类具有，在访问这些方法和属性时，会按照__mro__显示出来的顺序一层一层向前查找，直到找到为止。

class Father1:
    pass


class Father2(Father1):
    pass


class Father3:
    pass


class Son(Father2, Father3):
    pass


print(So.]]></description><category></category></item><item><title><![CDATA[pandas之eval与assign]]></title><link>https://blog.csdn.net/ljr_123/article/details/125015388</link><guid>https://blog.csdn.net/ljr_123/article/details/125015388</guid><author>ljr_123</author><pubDate>Sat, 04 Jun 2022 15:30:00 +0800</pubDate><description><![CDATA[import pandas as pd
import numpy as np

d = pd.DataFrame({"姓名": list("AAABBCDD"), 
                  "V1": [i for i in range(1, 9)], 
                  "V2": [3, 1, 1, 9, 9, 0, 0, 0]}
                )

d.eval('V = V1 + V2')  # 有 inplace 参数
print(f"执行 d.ev]]></description><category></category></item><item><title><![CDATA[python，读取含中文的文件时，报“UnicodeDecodeError”等乱码错误，最全编码设置方式]]></title><link>https://blog.csdn.net/ljr_123/article/details/125097580</link><guid>https://blog.csdn.net/ljr_123/article/details/125097580</guid><author>ljr_123</author><pubDate>Fri, 03 Jun 2022 16:15:00 +0800</pubDate><description><![CDATA[编码格式错误。UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 1: invalid start byte]]></description><category></category></item><item><title><![CDATA[windows系统，使用命令行启动MySQL服务失败，报错：服务名无效。]]></title><link>https://blog.csdn.net/ljr_123/article/details/125015291</link><guid>https://blog.csdn.net/ljr_123/article/details/125015291</guid><author>ljr_123</author><pubDate>Sat, 28 May 2022 16:00:00 +0800</pubDate><description><![CDATA[方式一：命令行启动
在windows系统中，使用net start mysql启动MySQL服务，报错：服务名无效。

问题原因： 服务器名错了
解决办法 ：应该使用命令net start mysql80，其中80是MySQL的版本。如果不确定自己的MySQL版本，可以在“开始” 菜单栏里面查看
点击电脑左下角的 “开始” 菜单栏，找到MySQL就可以看到版本号，去掉版本号中的 “.”

注意： 启动cmd时，要以管理员身份运行，否则会报错 “发生系统错误 5。拒绝访问。”


方式二：手动启动
我的电脑，]]></description><category></category></item><item><title><![CDATA[pandas使用read_excel时，通过dtype参数调整数据类型可能失败，无法通过to_datetime或strptime将日期字符串转成datetime类型]]></title><link>https://blog.csdn.net/ljr_123/article/details/124966123</link><guid>https://blog.csdn.net/ljr_123/article/details/124966123</guid><author>ljr_123</author><pubDate>Sat, 28 May 2022 15:45:00 +0800</pubDate><description><![CDATA[# 导入相关模块
import numpy as np
import pandas as pd
from datetime import datetime
from pathlib import Path

pd.set_option('display.max_rows', 10)  # 设置显示的最大行数

# 1、读取数据
data = pd.read_excel(Path.cwd()/f"dtype测试文件.xlsx",
                     dtype={"上市日": str, ]]></description><category></category></item><item><title><![CDATA[取消、禁止Office/Excel开机自动新建空白文件]]></title><link>https://blog.csdn.net/ljr_123/article/details/124765888</link><guid>https://blog.csdn.net/ljr_123/article/details/124765888</guid><author>ljr_123</author><pubDate>Sat, 14 May 2022 11:38:22 +0800</pubDate><description><![CDATA[问题：每次开机，Excel总是自动新建一个空白文档，烦死了解决方法：文件 → 选项 → 信任中心 → 信任中心设置→ 选中描述为“用户启动”的项（注意路径位置）→删除→确定。搞定^-^!










...]]></description><category></category></item><item><title><![CDATA[pandas.cut，将一系列数据进行分组，对cut各参数的理解]]></title><link>https://blog.csdn.net/ljr_123/article/details/124736669</link><guid>https://blog.csdn.net/ljr_123/article/details/124736669</guid><author>ljr_123</author><pubDate>Thu, 12 May 2022 18:42:14 +0800</pubDate><description><![CDATA[# 导入模块
import pandas as pd
import numpy as np


# 使用 cut 的默认参数
pd.cut(np.array([1, 7, 5, 4, 6, 3]), [1, 4, 6, 10])

""" 第1组：right 参数 """
#    1) True：左开右闭，( , ]
#    2) False：左闭右开，[ , )

pd.cut(np.array([1, 7, 5, 4, 6, 3]), [1, 4, 6, 10], right=True)
pd.cu]]></description><category></category></item><item><title><![CDATA[bat/cmd 常见特殊字符]]></title><link>https://blog.csdn.net/ljr_123/article/details/124282536</link><guid>https://blog.csdn.net/ljr_123/article/details/124282536</guid><author>ljr_123</author><pubDate>Tue, 19 Apr 2022 20:32:02 +0800</pubDate><description><![CDATA[特殊字符
			说明
			举例
		@
			
			其后紧跟一条命令/语句，该命令/语句在执行时，

			不会在屏幕上显示
			
			
			
echo a
@echo a

echo pause
@echo pause

			
			
		
			
			
		
			
			
		
			
			
		
			
			
		
			
			
		
			
			
		
			
			
		
			
			
		
...]]></description><category></category></item><item><title><![CDATA[pyinstaller打包exe，报错no module named ...]]></title><link>https://blog.csdn.net/ljr_123/article/details/123762033</link><guid>https://blog.csdn.net/ljr_123/article/details/123762033</guid><author>ljr_123</author><pubDate>Sat, 26 Mar 2022 20:34:08 +0800</pubDate><description><![CDATA[使用pyinstaller打包成exe时，报错no module named ...]]></description><category></category></item><item><title><![CDATA[如何通过xlwings直接将DataFrame去行列标题写入工作表]]></title><link>https://blog.csdn.net/ljr_123/article/details/123586498</link><guid>https://blog.csdn.net/ljr_123/article/details/123586498</guid><author>ljr_123</author><pubDate>Sat, 19 Mar 2022 14:15:00 +0800</pubDate><description><![CDATA[将 DataFrame 去行、列标题写入工作表中]]></description><category></category></item><item><title><![CDATA[python中通过xlwings判断excel是否存在筛选，并取消筛选]]></title><link>https://blog.csdn.net/ljr_123/article/details/123586089</link><guid>https://blog.csdn.net/ljr_123/article/details/123586089</guid><author>ljr_123</author><pubDate>Sat, 19 Mar 2022 14:00:00 +0800</pubDate><description><![CDATA[在python中实现excel的筛选]]></description><category></category></item><item><title><![CDATA[AutoFilter、AutoFilterMode与FilterMode之刨根问底篇]]></title><link>https://blog.csdn.net/ljr_123/article/details/123585724</link><guid>https://blog.csdn.net/ljr_123/article/details/123585724</guid><author>ljr_123</author><pubDate>Fri, 18 Mar 2022 22:15:27 +0800</pubDate><description><![CDATA[AutoFilter、AutoFilterMode与FilterMode的来龙去脉]]></description><category></category></item><item><title><![CDATA[无法对多重选择区域执行此操作]]></title><link>https://blog.csdn.net/ljr_123/article/details/123559788</link><guid>https://blog.csdn.net/ljr_123/article/details/123559788</guid><author>ljr_123</author><pubDate>Thu, 17 Mar 2022 20:32:02 +0800</pubDate><description><![CDATA[excel粘贴报错：无法对多重选择区域执行此操作]]></description><category></category></item><item><title><![CDATA[pathlib.Path模块下的glob、rglob，glob模块下的glob、iglob]]></title><link>https://blog.csdn.net/ljr_123/article/details/122903851</link><guid>https://blog.csdn.net/ljr_123/article/details/122903851</guid><author>ljr_123</author><pubDate>Sun, 13 Feb 2022 00:10:46 +0800</pubDate><description><![CDATA[glob.glob(*)、glob.glob(**)、glob.iglob(*)、glob.iglob(**)
Path.glob(*)、Path.glob(**)、Path.rglob(*)、Path.rglob(**)]]></description><category></category></item><item><title><![CDATA[pandas，将DataFrame的列逆序排列]]></title><link>https://blog.csdn.net/ljr_123/article/details/122157636</link><guid>https://blog.csdn.net/ljr_123/article/details/122157636</guid><author>ljr_123</author><pubDate>Sun, 26 Dec 2021 17:39:27 +0800</pubDate><description><![CDATA[import pandas as pd
import numpy as np

df=pd.read_excel("https://www.gairuo.com/file/data/dataset/team.xlsx")
# df.sample(5)  # 随机读取5个数据
df.sort_index(na_position="first")

# 通过因子化 factorize，将列进行逆序排列
# key：在排序前，对 index 执行的函数 
df.sort_index(axis=1, key=lam]]></description><category></category></item><item><title><![CDATA[使用python读取官方节假日文件，获取放假日期]]></title><link>https://blog.csdn.net/ljr_123/article/details/121732299</link><guid>https://blog.csdn.net/ljr_123/article/details/121732299</guid><author>ljr_123</author><pubDate>Sun, 05 Dec 2021 17:33:28 +0800</pubDate><description><![CDATA[使用python读取节假日安排文件，获取放假的所有日期]]></description><category></category></item></channel></rss>