check the connection to certain pc, and check its ip ad继续阅读“Microsoft Docs Command and Windows Tricks”
作者存档:Xihui Wang
pandas 1.0以后pd.concat()里join_axes消失的变化
以前的pandas版本太低,pandas==0.24.2,于是升级到了pandas 1.1.1 版本变化太大,继续阅读“pandas 1.0以后pd.concat()里join_axes消失的变化”
Oracle Related Concept and Syntax
SID: instance_name, unique name of the INSTANCE https:/继续阅读“Oracle Related Concept and Syntax”
Pyinstaller —Failed to execute script的对策
Heroku的配置
1.上传环境: pip3 freeze > requirements.txt 2.设置python版本号继续阅读“Heroku的配置”
pandas将多个column的空值变为指定值
pandas数据框中,把多个column的空值变为指定值: result.fillna({‘a’: 0, ‘b继续阅读“pandas将多个column的空值变为指定值”
关于SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame的解决方案
主要原因是无法确定到底返回的是一个引用还是一个拷贝 因此需要显示的赋值: df[‘A’继续阅读“关于SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame的解决方案”
快速将列表里str转int
list(map(int, numbers_str)) 对numbers_str进行映射后形成整形列表
快速除去列表里空字符
list(filter(None, string)) 对string列表过滤掉空字符,然后重新形成list
对数组中nan赋前值
# -*- coding: utf-8 -*- import numpy as np # 对于二维数组 arr继续阅读“对数组中nan赋前值”