- 博客(15)
- 收藏
- 关注
原创 CDS Learning
Machine Learning Foundations: A Case Study Approach C:\Users\355685\Documents\Python Scripts
2019-04-18 16:31:01
111
原创 Python Basic
2018/12/23 ************************************************************************************************ input() and raw_input() raw_input() 所有输入默认为字符串格式,python3中已经弃用 input() 输入是必须按照字符类型的格式,字符串...
2018-12-23 15:18:41
269
原创 Python3.7 的坑
原来是这么导入包的 import pandas as pd import matplotlib.pyplot as plt import seaborn as sb import numpy as np import seadata 现在得这样导包 pd = __import__('pandas') sb = __import__('seaborn') np = __import__...
2018-12-14 16:31:35
1068
原创 PyCharm 初始设置
创建环境 选择Virtualevn,再选择使用python2还是python3 安装包 pip 命令在Terminal 里执行 如果一个包在python2的环境里安装过了,切换到python3的时候需要先把原来的删除掉,再在新环境里面重新pip安装 菜单设置里面interpreter里面查看右边列表是已经安装的第三方库,这时若要添加新库,则点击那个绿色的+号。 使用sea...
2018-12-13 11:11:38
340
原创 Git Start
最小配置 $git config --global user.name 'your_name' $git config --global user.email 'your_email@xxx.com'
2018-12-11 13:56:52
800
原创 Python 语法基础 Numpy
NumPy相对Python更高级和更高效,数组存储在均匀连续的内存块,节约计算资源;矢量化的指针指令和多线程矩阵计算提升计算效率;避免隐氏拷贝,采取就地操作。 基本属性shape,dtype import numpy as np np.array() a = np.array([0,1,2,3]) a array([0, 1, 2, 3]) b = np.array([[0,1,2],[3...
2018-05-03 10:36:47
196
原创 Python 语法基础 lambda, list comprehensions
lambdapeople = ['Dr. Christopher Brooks', 'Dr. Kevyn Collins-Thompson', 'Dr. VG Vinod Vydiswaran', 'Dr. Daniel Romero']def split_title_and_name(person): return person.split()[0] + ' ' + person.spli...
2018-05-03 09:06:57
494
原创 Python 语法基础 对象object,map函数
class Person: #定义名首字母必须是大写store1 = [10.00, 11.00, 12.34, 2.34]store2 = [9.00, 11.10, 12.34, 2.01]cheapest = map(min, store1, store2)
2018-05-02 09:26:38
1220
原创 Pythoon 语法基础 日期与时间data,time
import datetime as dtimport time as tm#Convert Date to Fiscal Year/Fiscal Weekimport datetimedate_entry = '2018-04-26' #input date hereyear, month, day = map(int, date_entry.split('-')) #splitdate1 = ...
2018-04-25 11:46:54
308
原创 Python 语法基础 列表List
列表List:game = [ 'Rock', 'Paper', 'Scissors', 'Lizard', 'Spock']game.index('Paper')game.append('Mike')game.insert(0,'Computer')game.remove('Paper')game.pop() #remove the end item of listgame.pop(3) #r...
2018-04-23 16:23:29
134
原创 Anaconda3 Jupyter 修改默认工作目录
1 打开Anaconda Prompt,输入jupyter notebook --generate-config在用户目录就会自动生成 jupyter_notebook_config 文件2 打开jupyter_notebook_config,添加自己的路径。注意要添加转义符号\#c.NotebookApp.notebook_dir =‘’c.NotebookApp.notebook_dir = ...
2018-04-23 14:21:21
1804
原创 R Statistics Essential Training Notes
Based on RstudioShift + Ctrl + cmultiple line commentCtrl + EnterAlt + Enterrun commandR works on vector (begin from 1)Ctrl + lclean the Consolec()concatenate functionAlt + -<-rm()remove variablerm...
2018-04-02 13:51:52
293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人