统计方法pandas 对象有一些统计方法。它们大部分都属于约简和汇总统计,用于从 Series 中提取单个值,或从 DataFrame 的行或列中提取一个 Series。比如 DataFrame.mean(axis=0,skipna=True) 方法,当数据集中存在 NA 值时,这些值会被简单跳过,...
分类:
其他好文 时间:
2015-01-08 21:21:22
阅读次数:
246
#include
//判断一个数是否为丑数
bool IsChou(__int64 num)
{
while(num!=0)
{
if(num == 1)
return 1;
else if(num % 2 == 0)
num /= 2;
else if(num % 3 == 0)
num /= 3;
else if(num % 5 == 0)
nu...
分类:
其他好文 时间:
2015-01-08 13:24:02
阅读次数:
149
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-01-08 13:03:40
阅读次数:
106
用了Visual Studio 2015之后,发现没法跑xUnit单元测试,xUnit.net runner不支持VS2015,TestDriven.Net也不支持VS2015。等它们支持VS2015,不知要等到猴年还是要等到马月。于是今天决定不等了,尝试用msbuild跑单元测试解决这个问题。nu...
分类:
其他好文 时间:
2015-01-07 18:11:46
阅读次数:
287
Linq 排序用orderby时,Null是最小值,比如:users 中birthday 字段有null值,如果排序var query=from s in db.users orderby s.birthday select s;则,nu...
分类:
编程语言 时间:
2015-01-06 19:51:17
阅读次数:
185
https://oj.leetcode.com/problems/pascals-triangle/http://blog.csdn.net/linhuanmars/article/details/23311527publicclassSolution{
publicList<List<Integer>>generate(intnumRows){
List<List<Integer>>toReturn=newArrayList<>();
if(nu..
分类:
其他好文 时间:
2015-01-06 18:15:51
阅读次数:
126
题目链接:http://poj.org/problem?id=2378题意:给一个树状图,有n个点。求出,去掉哪个点,使得剩下的每个连通子图中点的数量不超过n/2。分析:num[u]表示以u为根节点的子树的总节点树,判断下与u连接的儿子v代表的子树总节点num[v]和u的父亲代表的子树总节点n-nu...
分类:
其他好文 时间:
2015-01-06 00:45:55
阅读次数:
163
https://pypi.python.org/pypi/setuptools/,下载setuptools。安装成功后,运行下面的指令即可进行相应的安装。easy_install numpyeasy_install scipieasy_install matplotlib可以在:http://www...
分类:
其他好文 时间:
2015-01-06 00:38:00
阅读次数:
408
Matplotlib 教程 本文为译文,原文载于此,译文原载于此。本文欢迎转载,但请保留本段文字,尊重作者和译者的权益。谢谢。: ) 介绍 Matplotlib 可能是 Python 2D- 绘图领域使用最广泛的套件。它能让使用者很轻松地...
分类:
其他好文 时间:
2015-01-05 16:57:41
阅读次数:
709
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-01-04 22:49:26
阅读次数:
229