笔者最近需要使用pyspark进行数据整理,于是乎给自己整理一份使用指南。pyspark.dataframe跟pandas的差别还是挺大的。 1、——– 查 ——– — 1.1 行元素查询操作 — 像SQL那样打印列表前20元素 show函数内可用int类型指定要打印的行数: df.show()df ...
分类:
其他好文 时间:
2018-12-01 13:20:10
阅读次数:
653
| t01 | CREATE TABLE `t01` ( `pkid` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `code` int(11) NOT NULL, `ctime` datetime D ...
分类:
其他好文 时间:
2018-12-01 11:09:39
阅读次数:
154
传送门:https://leetcode-cn.com/problems/find-the-duplicate-number/submissions/给定一个包含n+1个整数的数组nums,其数字都在1到n之间(包括1和n),可知至少存在一个重复的整数。假设只有一个重复的整数,找出这个重复的数。示例1:输入:[1,3,4,2,2]输出:2示例2:输入:[3,1,3,4,2]输出:3说明:不能更改原
分类:
其他好文 时间:
2018-11-29 19:54:33
阅读次数:
152
一、题目 1、审题 2、分析 一个长度为 n+1 的整形数组,元素值为 1~ n 之间。其中一个元素重复了多次,其他元素只出现一次。求出多次出现的那个元素。 二、解答 1、思路 类似: 142. Linked List Cycle II //这道题的关键在于0处是没有索引指向的,将数组视为静态链表, ...
分类:
其他好文 时间:
2018-11-23 22:54:07
阅读次数:
170
环境: 源库:O11gR2+ASM+RAC+rhel6.4 目标库:O11gR2+rhel6.4单实例 步骤 1、配置静态监听 源库:/u01/app/11.2.0/grid_1/network/admin/listener.ora 目标库:/u01/app/oracle/product/11.2. ...
分类:
其他好文 时间:
2018-11-23 16:09:50
阅读次数:
151
Controller层相当于MVC中的C,也是安卓或者前端请求的接口。 首先说Controller为什么需要写的更加简化? 第一、Controller是不能复用的; 第二、即便是将Controller分类,如果Controller代码过于庞大,不利于维护; 第三、Controller中的CRUD之类 ...
分类:
其他好文 时间:
2018-11-22 21:01:01
阅读次数:
210
1. Question: 287. Find the Duplicate Number https://leetcode.com/problems/find-the-duplicate-number/ Given an array nums containing n + 1 integers whe ...
分类:
其他好文 时间:
2018-11-20 22:53:18
阅读次数:
171
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2018-11-15 15:36:33
阅读次数:
203
287. Find the Duplicate Number Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least on ...
分类:
其他好文 时间:
2018-11-10 21:14:43
阅读次数:
137
20172328 2018 2019《Java软件结构与数据结构》第八周学习总结 概述 Generalization 本周学习了二叉树的另一种有序扩展?是什么呢?你猜对了!ヾ(?°?°?)??就是堆。本章将讲解堆的链表实现and数组实现,以及往堆中添加元素或从堆中删除元素的算法;还将介绍对的一些用途 ...
分类:
编程语言 时间:
2018-11-10 16:41:51
阅读次数:
233