- 博客(6)
- 收藏
- 关注
转载 更新OS X El Capitan系统后,brew update报错,解决方案
报错结果:bash-3.2# brew updateError: Cowardly refusing to `sudo brew update`解决方案:顺序执行以下即可:ls -al `which brew`sudo chown root:wheel `which brew`sudo chown : `chown brew`执行结果:...
2015-11-06 14:02:00
150
转载 pandas 入门学习__Series 的简单运用(一)
pandas 引入约定:1 from pandas import Series, DataFrame2 import pandas as pdpandas 数据结构【1】Series Series 类似一维数组对象,它由一组数据以及一组索引组成,可以通过 Series 的 values 和 index 属性来获取其数组表示形式和索引对象:obj = ...
2015-10-29 14:33:00
126
转载 OSX 10.11下Homebrew的安装问题
跟着官网快捷安装,出现以下报错信息:huanghonglindeMacBook-Pro:local huanghonglin$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"==> This script will install:/u...
2015-10-26 16:09:00
331
转载 Python 函数参数使用
默认参数def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): while True: ok = raw_input(prompt) if ok in ('y', 'ye', 'yes'): return True ...
2015-10-16 15:16:00
111
转载 Python 处理 Excel 操作 (一)____ xlrd
读取操作import xlrd打开 Excel 文件excel = xlrd.open_workbook('excel.xls')查看 sheet 名excel.sheet_names()得到第一个工作表,或者通过索引顺序,或工作表名称table = excel.sheets()[0]table = excel.she...
2015-09-22 14:13:00
92
转载 《利用python进行数据挖掘》pivot_table()方法报错
在MovieLens 1M数据集其中一个例子,使用pivot_table()按性别计算每部电影的平均得分1 mean_ratings = data.pivot_table('rating', rows='title', cols='gender', aggfunc='mean')2 print mean_ratings[:5]报错信息:Traceback (mos...
2015-09-14 16:25:00
421
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人