IPython使用问题记录
2016-02-29 12:03
579 查看
1. ‘c’ engine does not support regex separators:
根据报错提示输入命令就OK了:
2. %run命令:
在IPython shell中访问脚本中的变量,执行时只用
希望脚本能访问交互式IPython命名空间中定义的变量:
In [73]: users = pd.read_csv(upath, sep='::', header=None, names=unames, encoding=encoding) /Users/[your_name]/Library/Enthought/Canopy_64bit/User/bin/ipython:1: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators; you can avoid this warning by specifying engine='python'.
根据报错提示输入命令就OK了:
In [74]: users = pd.read_csv(upath, sep='::', header=None, names=unames, encoding=encoding, engine='python')
2. %run命令:
在IPython shell中访问脚本中的变量,执行时只用
%run:
希望脚本能访问交互式IPython命名空间中定义的变量:
%run -i
def f(x, y, z, w): return (x + y) / z + w a = 5 b = 6 c = 7.5 result = f(a, b, c, w)
相关文章推荐
- theano 0.8与pydot、graphziv的冲突解决
- python 环境搭建
- python类中实现dict的功能
- Python执行系统命令的方法 os.system(),os.popen(),commands
- python爬虫代码
- python(6)时间戳和北京时间互转,输出当前的时间和推到七天前的日期
- 1-Python 安装 Matplotlib
- 2+python解析RSS(feedparser)
- 打造自己的Python编码环境
- Python中用feedparser解析RSS
- Python 的生成二维码生成库 -- qrcode
- python爬虫抓网页的总结
- Python爬虫(一):环境配置
- python入门经典(二)
- Python2.x与Python3.x的区别
- Learning Python(10)--input与raw_input
- python学习笔记六之面向对象相关下(基础篇)
- python应用之文件属性浏览
- 笨方法学python学习笔记
- 《利用python进行数据分析》学习笔记(一)