上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: series Series 是pandas两大数据结构中(DataFrame,Series)的一种。 创建Series Series的定义 :Series是一种类似于一维数组的对象,它由一组数据(各种NumPy数据类型)以及一组与之相关的数据标签(即索引)组成。 ​ Series对象本质上是一个Nu 阅读全文
posted @ 2018-11-30 11:39 枫子_dan 阅读(483) 评论(0) 推荐(0) 编辑
摘要: mean() 1. mean() 函数定义: mean`(a, axis=None, dtype=None, out=None, keepdims=) "[source\]" Compute the arithmetic mean along the specified axis. Returns 阅读全文
posted @ 2018-11-30 11:05 枫子_dan 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1、判断是否是数字 2、数学math 3、查看安装路径 4、字符串与日期的转换 5、 生成数字数组 6、除法保留小数 7、输出% 阅读全文
posted @ 2018-11-30 10:50 枫子_dan 阅读(158) 评论(0) 推荐(0) 编辑
摘要: python获取当前路径 import os,sys 使用sys.path[0]、sys.argv[0]、os.getcwd()、os.path.abspath(__file__)、os.path.realpath(__file__) sys.path是Python会去寻找模块的搜索路径列表,sys 阅读全文
posted @ 2018-11-30 10:48 枫子_dan 阅读(2201) 评论(0) 推荐(0) 编辑
摘要: ```python def runShell(cmd): try: (status, output) = commands.getstatusoutput(cmd) except Exception, e: return (1, "") # write shell and shell's result into shelllog r... 阅读全文
posted @ 2018-11-30 10:45 枫子_dan 阅读(173) 评论(0) 推荐(0) 编辑
摘要: ```python coding:utf 8 __author__ = 'zzd' import xlrd open excelfile def open_excel(file): try: data = xlrd.open_workbook(file) return data except Exc 阅读全文
posted @ 2018-11-30 10:44 枫子_dan 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 简介 龟叔 Guido van rossum 胶水语言 提供了非常完善的代码库 运行速度慢,大小写敏感 是解释型语言,也就是说,发布项目时相当于发布源代码 编译型语言,如C语言,运行以后生成exe文件,不能从exe文件反推出C语言代码 Python语言解释器: ​ CPython 使用广泛 ​ IP 阅读全文
posted @ 2018-11-30 10:43 枫子_dan 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 有的项目使用tornado框架比较好,有的用Django框架比较好,容易发生冲突,这个时候可以建立一个虚拟的python环境。 1. 安装virtualenv包 2. 进入项目所在目录,执行命令 3. 进入tornadoenv文件夹里,里面的Scripts里面有python\pip等命令,该虚拟环境 阅读全文
posted @ 2018-11-29 20:35 枫子_dan 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 系统配置:Windows10 x64, Visual Studio 2017, Python2.7.1 报错信息:error: Unable to find vcvarsall.bat 报错原因:在生成的时候,编译器从%PythonInstallPath%\distutils\msvc9compil 阅读全文
posted @ 2018-11-29 20:34 枫子_dan 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 下载 第三方模块的下载地址:https://pypi.python.org/pypi 其他版本的第三方模块下载地址: pipy国内镜像目前有: 豆瓣 阿里云 中国科技大学 清华大学 华中理工大学 山东理工大学 1、安装 1.1 命令行下安装模块 例:xlrd模块 下载xlrd: tar.gz包解压后 阅读全文
posted @ 2018-11-29 20:31 枫子_dan 阅读(1576) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页