读童话的狼
2021-03-04 阅读量: 25
在Terminal里分别运行两个安装命令
pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple/ jupyter contrib nbextension install --user
pip install --user fancyimpute -i https://pypi.douban.com/simpleD:\ProgramData\Anaconda3;D:\ProgramData\Anaconda3\Library\mingw-w64\bin;D:\ProgramData\Anaconda3\Library\usr\bin;D:\ProgramData\Anaconda
方法一:关于python判断字符串(string)是否包含(contains)子字符串的方法的内容。f['Discount_rate'].str.contains(':') 比如这个就是赛选df文件下Discount_rate标签是否包含‘:’这个符号 有的话返回Ttue 没有的话返回False方法2:使用find函数实现contains的功能s = "This be a string"if s
reshape函数的使用:#reshape()是数组对象中的方法,用于改变数组的形状用法:numpy.reshape(a, newshape, order=’C’)参数:a:array_like 要重新形成的数组。newshape:int或tuple的整数 新的形状应该与原始形状兼容。如果是整数,则结果将是该长度的1-D数组。一个形状维度可以是-1。在这种情况下,从数组的长度和其余维度
比如我想安装spyder,想在安装之前看下有哪些版本可以安装,就可以先启动一个cmd窗口,然后在窗口里面输入命令pip install spyder==*这样就可以看到有哪些版本可以安装C:\Users\Administrator>pip install spyder==*ERROR: Could not find a version that satisfies the requirement