摘要:
series Series 是pandas两大数据结构中(DataFrame,Series)的一种。 创建Series Series的定义 :Series是一种类似于一维数组的对象,它由一组数据(各种NumPy数据类型)以及一组与之相关的数据标签(即索引)组成。 Series对象本质上是一个Nu 阅读全文
摘要:
mean() 1. mean() 函数定义: mean`(a, axis=None, dtype=None, out=None, keepdims=) "[source\]" Compute the arithmetic mean along the specified axis. Returns 阅读全文
摘要:
1、判断是否是数字 2、数学math 3、查看安装路径 4、字符串与日期的转换 5、 生成数字数组 6、除法保留小数 7、输出% 阅读全文
摘要:
python获取当前路径 import os,sys 使用sys.path[0]、sys.argv[0]、os.getcwd()、os.path.abspath(__file__)、os.path.realpath(__file__) sys.path是Python会去寻找模块的搜索路径列表,sys 阅读全文
摘要:
```python
def runShell(cmd): try: (status, output) = commands.getstatusoutput(cmd) except Exception, e: return (1, "") # write shell and shell's result into shelllog r... 阅读全文
摘要:
```python coding:utf 8 __author__ = 'zzd' import xlrd open excelfile def open_excel(file): try: data = xlrd.open_workbook(file) return data except Exc 阅读全文
摘要:
简介 龟叔 Guido van rossum 胶水语言 提供了非常完善的代码库 运行速度慢,大小写敏感 是解释型语言,也就是说,发布项目时相当于发布源代码 编译型语言,如C语言,运行以后生成exe文件,不能从exe文件反推出C语言代码 Python语言解释器: CPython 使用广泛 IP 阅读全文