摘要: 数据分析 | pandas | python 简介:本系列教程主要讲解了数据分析库pandas的使用方法,内容参考了Kevin Markham的Data analysis in Python with pandas视频教程,还有《利用python进行数据分析》一书,可以作为学习pandas的参考。 阅读全文
posted @ 2017-11-10 00:57 夜雨寒山 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 简介: 本文主要介绍如何利用pandas读入表单数据。 读入数据 pandas.read_csv() 从文件,URL,文件型对象中加载带分隔符的数据。默认分隔符为''," pandas.read_table() 从文件,URL,文件型对象中加载带分隔符的数据。默认分隔符为"\t" 参数: 1. 分隔 阅读全文
posted @ 2017-11-10 10:10 夜雨寒山 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 参考文章: pandas使用技巧系列总览 http://www.cnblogs.com/shewell/p/7812162.html 阅读全文
posted @ 2017-11-09 23:46 夜雨寒山 阅读(110) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: void FindNumsAppearOnce(vector<int> str,int* num1,int *num2) { int exclusiveOr =0; for(int i=0; i< str.size(); ++i) { exclusiv 阅读全文
posted @ 2017-03-09 20:32 夜雨寒山 阅读(83) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int GetNumberOfK(vector<int> data ,int k) { if(data.size() <=0) return 0; int result = 0; int index = -1; index = binSearch(da 阅读全文
posted @ 2017-03-04 21:52 夜雨寒山 阅读(71) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: vector<string> Permutation(string str) { vector<string> result; if(str.size()<=0) return result; int start = 0; permute( str, 阅读全文
posted @ 2017-03-04 19:54 夜雨寒山 阅读(115) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int FindGreatestSumOfSubArray(vector<int> array) { int maxNum =0x80000000; int curNum = 0; for(int i=0; i<array.size(); i++) { 阅读全文
posted @ 2017-03-02 22:47 夜雨寒山 阅读(73) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int MoreThanHalfNum_Solution(vector<int> numbers) { if(numbers.empty()) return 0; int count =0; int midVal =0; int tobesorted 阅读全文
posted @ 2017-03-02 21:30 夜雨寒山 阅读(69) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int GetUglyNumber_Solution(int index) { //变量定义区 int subA=0, subB=0, subC=0; int sub =0; int* array = new int[index]; array[0] 阅读全文
posted @ 2017-03-02 20:46 夜雨寒山 阅读(178) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: vector<int> printMatrix(vector<vector<int> > matrix) { //变量定义区 int row = matrix.size(); int col = matrix[0].size(); vector<int 阅读全文
posted @ 2017-02-28 21:54 夜雨寒山 阅读(179) 评论(0) 推荐(0) 编辑