摘要: 背景: 在jupyter notebook to_excle: 运行将dataframe保存为excel文件 时报错openpyxl read_excel: 运行读取excel文件 时报错xlrd 已安装pandas,numpy,pytz,matplotlib,cycler等等包的情况下 解决:直接 阅读全文
posted @ 2019-03-02 11:24 anliux 阅读(9474) 评论(0) 推荐(1)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day18" 使用Python来操作excel文件 Excel的处理与DataFrame格式是分不开的 可以理解为DataFrame就是Excel在python里的一种表现形式 1 创建并保存excel 打开jupy 阅读全文
posted @ 2019-03-02 10:26 anliux 阅读(341) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day17" 认识dataframe 一种非常有用的数据类型,叫做"DataFrame",经常缩写为"df"。 本质上是一个表格型的数据结构,类似excel的sheet,是在数据挖掘中最常用的一个工具。 (像是数组, 阅读全文
posted @ 2019-02-28 15:31 anliux 阅读(202) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day15" 认识读/写txt文件 路径: 绝对路径:文件在电脑中的位置 相对路径:下面会用到 1 准备 新建一个 python.txt 文件,并输入引号内的“皮一下很开心”保存 2 读文件 打开jupyter no 阅读全文
posted @ 2019-02-27 22:35 anliux 阅读(375) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day14" 认识函数function 函数相当于一个固定的公式,一个映射。有输入,有输出。 1 python内置函数 max() 求最大值 min() 求最小值 abs() 求绝对值 int() 转换成整数 ran 阅读全文
posted @ 2019-02-10 19:32 anliux 阅读(221) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day13" 认识异常处理 要点小结: try和except是同个等级,注意对齐和缩进 可以把try和except直接理解成另一种形式的if else来翻译,是整个程序的保险单 Try里任何一步错误都会直接执行exc 阅读全文
posted @ 2019-02-10 13:04 anliux 阅读(431) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day12" 认识for循环执行 ps: range()函数 python range() 函数可创建一个整数列表,一般用在 for 循环中 1 初识for循环 格式:for ... in ... (i感觉非常虚无. 阅读全文
posted @ 2019-02-10 11:31 anliux 阅读(179) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day11" 认识while循环执行 对于while/break/continue的认识 新值替换变量 一般while语句 无限循环 & break continue 作业 1 更新变量 这一条没什么新的东西,别的语 阅读全文
posted @ 2019-02-09 19:15 anliux 阅读(235) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day10" 认识if条件执行 一般条件执行 分支执行 链式条件执行 嵌套条件执行 1 if一般条件执行 格式:如果(满足这个条件), 就(怎么怎么样) 注意:冒号,符合返回,不符合什么都不返回 记得小伙伴说,缩进是 阅读全文
posted @ 2019-02-09 12:29 anliux 阅读(254) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day9" 认识dict字典 新的数据类型dict。 dict全称dictionary,在其他语言中也称为map,使用 (key: value)存储,就像查字典一样。 list是中括号[],而dict使用大括号{}。 阅读全文
posted @ 2019-02-09 11:01 anliux 阅读(192) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day8" 认识list列表 新的数据类型:list。 list是一种有序的集合,可以随时添加和删除其中的元素(链表??) 1 按顺序计数时,是从0开始计数 range()存在更多设置,本例只用简单 range(st 阅读全文
posted @ 2019-02-07 20:22 anliux 阅读(348) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day7" 回顾之前见到的常见数据类型 int 整数 float 浮点数 bool 布尔值 string 字符串 ... 1 转换成整数 int() round() 一般是浮点数转换成整数 2 转换成浮点数 floa 阅读全文
posted @ 2019-02-07 11:03 anliux 阅读(204) 评论(0) 推荐(0)
摘要: 从 Anaconda Prompt 或 Jupyter Notebook 终端进入Python后重新退出到命令状态 退出Python:exit() 或者 Ctrl+z 例子一枚 默认打开的是3.7,需要在prompt激活py35,之后切换到Python3.5 输入 启动笔记本(退出Python输入状 阅读全文
posted @ 2019-02-05 12:53 anliux 阅读(7318) 评论(0) 推荐(1)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day6" 认识字符串 字符串的性质 字符串的玩法 1 字符串就是字符的序列 序列,代表字符串是有顺序的!这里很重要。 比如我们来设定一个变量phone,给它赋值一个‘apple’ 2 字符串不可改变 字符串里的每一 阅读全文
posted @ 2019-02-05 12:24 anliux 阅读(271) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day5" 认识布尔表达式 简单来说,bool 就是对错判断。 给个条件,如果满足条件就返回True, 不满足条件就返回False。 1 打开jupyter,new一个新python文件 从anaconda prom 阅读全文
posted @ 2019-01-24 16:11 anliux 阅读(222) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day3" 数据类型 熟悉一下计算时可能碰到的数据类型。(计算时。。。) 1 打开jupyter,new一个新python文件 默认打开的是3.7,需要在prompt激活py35,之后切换到Python3.5 输入 阅读全文
posted @ 2019-01-23 17:52 anliux 阅读(164) 评论(0) 推荐(0)
摘要: 【学习总结】C-翁恺老师-入门-总 1-首先按视频说的下载编辑器 <DevC++> 并一路默认设置: 安装包下载链接 (我有vc6.0不过预感告诉我老师要用类似CS50里那种命令行编辑器?然而好像并不....) 注:安装语言为英文,运行语言选简体中文 2-第一个helloworld程序: 文件--新 阅读全文
posted @ 2019-01-22 16:52 anliux 阅读(337) 评论(0) 推荐(0)
摘要: 先贴几个可能的方法: "如何解决MathPage.wll或MathType.dll文件找不到问题" "The MathType Dll cannot be found 问题解决办法 " 如果还搞不定,试试卸载重装,不要改变安装路径,一下就好了。。我?? 有没有前面几个步骤设置的功劳未考证 阅读全文
posted @ 2019-01-14 16:44 anliux 阅读(4548) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day16" Pip pip是python 著名的包管理工具,在python开发过程必不可少。 本节带大家了解用pip实现的python包的下载、卸载、查看等详细操作 1 打开终端:Windows cmd or 看评 阅读全文
posted @ 2019-01-10 19:31 anliux 阅读(282) 评论(0) 推荐(0)
摘要: "【学习总结】GirlsInAI ML diary 总 " "原博github链接 day4" 变量/Variable 变量是计算机编程中一个很基础的概念,在计算机程序中,variables are reserved memory locations to store values. 当你新建一个v 阅读全文
posted @ 2019-01-09 12:08 anliux 阅读(200) 评论(0) 推荐(0)