背景:本文类似文章的目录部分,以系统学习python 新知识和复习总结用 python 基本语法 numpy库 matplotlib绘图库 pandas库 scikit-learn 机器学习库 ...
分类:
编程语言 时间:
2017-10-24 11:19:12
阅读次数:
157
#coding=utf8 import numpy as np import pandas as pd from sklearn.linear_model import Ridge from sklearn.model_selection import cross_val_score import ... ...
分类:
其他好文 时间:
2017-10-23 21:39:16
阅读次数:
351
#coding=utf8 import numpy as np import pandas as pd from sklearn.linear_model import Ridge from sklearn.model_selection import cross_val_score import ... ...
分类:
其他好文 时间:
2017-10-23 18:29:13
阅读次数:
262
1.shop_min=shop.drop(['category_id','longitude','latitude','price'],axis=1)pandas中删除多个列 2.mall=shop_min.drop_duplicates(subset='mall_id')pandas中将某一列去重 ...
分类:
编程语言 时间:
2017-10-22 23:28:16
阅读次数:
230
本文是对pandas官方网站上《10 Minutes to pandas》的一个简单的翻译 ...
分类:
其他好文 时间:
2017-10-22 01:29:38
阅读次数:
191
最近项目中需要用到Python调用oracle实现读写操作,踩过很多坑,历尽艰辛终于实现了。性能怎样先不说,有方法后面再调优嘛。现在把代码和注意点记录一下。 1. 所需Python工具库 cx_Oracle,pandas,可以使用通过控制台使用pip进行安装(电脑中已经安装) 2. 实现查询操作 # ...
分类:
数据库 时间:
2017-10-22 00:17:43
阅读次数:
235
1.结构化: 单条新闻的详情字典:news 一个列表页所有单条新闻汇总列表:newsls.append(news) 所有列表页的所有新闻汇总列表:newstotal.extend(newsls) 2.转换成pandas的数据结构DataFrame 3.从DataFrame保存到excel 4.从Da ...
分类:
其他好文 时间:
2017-10-19 21:21:34
阅读次数:
435
1.结构化: 单条新闻的详情字典:news 一个列表页所有单条新闻汇总列表:newsls.append(news) 所有列表页的所有新闻汇总列表:newstotal.extend(newsls) 2.转换成pandas的数据结构DataFrame 3.从DataFrame保存到excel 4.从Da ...
分类:
其他好文 时间:
2017-10-19 21:18:52
阅读次数:
262
1.结构化: 单条新闻的详情字典:news 一个列表页所有单条新闻汇总列表:newsls.append(news) 所有列表页的所有新闻汇总列表:newstotal.extend(newsls) 2.转换成pandas的数据结构DataFrame 3.从DataFrame保存到excel 4.从Da ...
分类:
其他好文 时间:
2017-10-19 21:15:02
阅读次数:
210
1、结构化: 单条新闻的详情字典:news 一个列表页所有单条新闻汇总列表:newsls.append(news) 所有列表页的所有新闻汇总列表:newstotal.extend(newsls) 2、转换成pandas的数据结构DataFrame 3、从DataFrame保存到excel 4、从Da ...
分类:
其他好文 时间:
2017-10-19 19:53:49
阅读次数:
203