1.输出数据集的基本信息,比如最大值,最小值,平均值等 读取表csv数据: import numpy as np import pandas as pd dataset=pd.read_csv("catering_sale.csv") dataset out: 数据集的平均值,最大值,最小值: da ...
分类:
其他好文 时间:
2021-03-15 10:31:58
阅读次数:
0
调整数组顺序使奇数位于偶数前面 /// <summary> /// 首尾双指针法 /// </summary> /// <param name="nums"></param> /// <returns></returns> public int[] HeadTailExchange(int[] nu ...
分类:
其他好文 时间:
2021-03-11 12:06:51
阅读次数:
0
20200927 python文件处理 numpy pandas 001 numpy zip 入参为两个列表,常为数组,返回元组列表,以短为准; NumPy是Python中科学计算的基础包。它是一个Python库,提供多维数组对象,各种派生对象(如掩码数组和矩阵),以及用于数组快速操作的各种API, ...
分类:
编程语言 时间:
2021-03-09 13:16:24
阅读次数:
0
xlwings xlwings开源免费,能够非常方便的读写Excel文件中的数据,并且能够进行单元格格式的修改。 xlwings还可以和matplotlib、numpy以及pandas无缝连接,支持读写numpy、pandas数据类型,将matplotlib可视化图表导入到excel中。xlwing ...
###1.我的解题代码 class Solution { public boolean containsDuplicate(int[] nums) { boolean flag = false; HashSet<Integer> set = new HashSet<>(); for(int i:nu ...
分类:
编程语言 时间:
2021-03-09 12:58:00
阅读次数:
0
题目描述 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。 示例: 给定 nums = [2, 7, 11, 15], target = 9因为 nu ...
分类:
其他好文 时间:
2021-03-08 13:14:30
阅读次数:
0
导入本次任务所用到的包: import pandas as pd import numpy as np from scipy import stats import matplotlib.pyplot as plt from sklearn.model_selection import train_ ...
分类:
编程语言 时间:
2021-03-06 14:31:47
阅读次数:
0
今天实现数据批量插入, 看了https://blog.csdn.net/weixin_42796152/article/details/107931768 《基于python,pandas,pymysql 将数据批量高效写入mysql数据库(保证可以用的那种)》的程序和自己编写的 insertMan ...
分类:
数据库 时间:
2021-03-02 12:29:40
阅读次数:
0
https://mp.weixin.qq.com/s/XY1lS4mxEf7BTf8UnFmaFA 根据汇总表的分区字段自动填入指定的分区文件中: 对于分区表的文件,例如A区.xlsx、B区.xlsx等,需要先将3行之后已经存在的数据删除后再进行写入。 B区.xlsx在自动填入后,结果如下: 其实初 ...
分类:
其他好文 时间:
2021-03-02 12:13:55
阅读次数:
0
参考博客:https://blog.csdn.net/weixin_45665788/article/details/104919669 import matplotlib.pyplot as plt import numpy as np import tensorflow as tf # 载入随机 ...
分类:
其他好文 时间:
2021-03-01 14:06:36
阅读次数:
0