logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

python opencv ROI 与copyTo,数学运算的应用

#!/usr/bin/env python3# -*- coding: utf-8 -*-# @Author: tcy# @Date:2020-5-3 12:10:53# @Version:V1.01# @Last Modified by:tcyshanghai songjiang xiaokunshan# @Last Modified time: 2020-5-7 ...

60 pandas 时间序列-详述重新采样resample(tcy)

重新采样 2019/1/21resample()是一个基于时间的groupby,然后是每个组的缩减方法。该resample功能非常灵活,允许您指定许多不同的参数来控制频率转换和重采样操作1.函数 df.resample(rule,how=None,axis=0,fill_method=None,closed=None,label=None,convention=start, kin...

conda httperror http none none for url none Anaconda更新失败(tcy)

找到C:\Users\Administrator\ .condarc 文件,删掉,如果安装有vs2017,将condarc那个文件也删掉。关闭重启Anaconda Navigator,然后重启,会自动初始化重建.condarc.注意:不要修改condarc文件内容,我修改没有成功。初始化成功后condarc的内容如下:ssl_verify: truechannels:  -...

pandas 学习汇总5 - index 创建( tcy)

index 创建  2018/12/2#1.pd.Indexi=pd.Index([1,2,3,4]) # (Int64Index([1, 2, 3, 4], dtype='int64')i=pd.Index(list('abcd')) # Index(['a','b','c','d'], dtype='object'))#2.pd.RangeIdex(start=None, sto...

52 pandas pd.Period周期属性方法及实例- 时间序列(tcy)

1.1函数:class pd.Period(value=None, freq=None, ordinal=None, year=None, month=None,quarter=None, day=None, hour=None, minute=None, second=None)#代表一段时间1.2参数: value=None:Period或compat.string_type...

pandas37 df.apply沿轴应用函数(作用于每一列或行 tcy)

1.函数df.apply(func, axis=0, broadcast=None, raw=False,reduce=None, result_type=None, args=(), **kwds)# 沿DataFrame的轴应用函数;s.apply(func, convert_dtype=True, args=(), **kwds)参数func : 应...

pandas25 if else语句(多数据df选择)( tcy)

if-then2018/12/31============================================================1.if-then / if-then-else用在一个数据帧上:# 实例1:if-then-elsedf = pd.DataFrame({'A': [10,11,12],'B': [20,21,22],'C'...

pandas30 合并数据merge,join,concat,append,combine,combine_first,update比较(比较详细)( tcy)

1.函数比较1.1.pd.merge(df1,df2)数据库方式数据合并(列操作)# 可根据一个或多个键(索引名或列名)将不同DataFrame中的行连接起来1.2.df1.join(df2)数据连接(列操作)# 通过一个或多个键(df1索引名或列名,df2索引名)将行键接起来# join绝大部分功能可有merge实现。2.1pd.concat(df1,...

pandas28 update-用另一个DataFrame中的非NA值进行就地修改(补全全部实例 tcy)

============================================================1.函数df.update(other, join='left', overwrite=True, filter_func=None, raise_conflict=False)用途:# 用另一个DataFrame中的非NA值进行就地修改参数:...

pandas21 to_string用法( tcy)

写一个格式化的字符串to_string    2018/12/281.函数: 函数df.to_string(buf=None, columns=None, col_space=None, header=True,index=True, na_rep='NaN', formatters=None, float_format=None,...

    共 43 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 请选择