![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 87
GeekDengshuo
这个作者很懒,什么都没留下…
展开
-
Python 学习笔记(不定期更新~)
Python基础知识 python的优势 Python中的for循环要高于C语言中的for循环,因为Python中的for循环不仅可以用在list或tuple上 还可以用在其他的可迭代对象上. python 实现下标循环,利用Python内置的enumerate函数可以把一个list变成索引-元素对.这样就可以在for循环中同时迭代索引和元素本身. such as : for ...原创 2018-05-04 20:09:51 · 323 阅读 · 0 评论 -
第一章 数据结构与算法
第一章 数据结构与算法 常用的数据结构应该直接用 另外有趣的一点是,collections模块中包含比较多针对数据结构的解决方案 努力成为一名合格的调包侠 1.1 可迭代对象的分解元素 # 可迭代对象中分解元素(找到自己的需求元素) # 解决方案,利用"*表达式" def drop_first_last(grades): first,*middle,last=grades...原创 2018-05-01 18:05:14 · 186 阅读 · 0 评论 -
Counter教程
Python 函数Counter的学习 Leetcode intersection of two arrays II Problem:Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2...原创 2018-04-11 17:14:44 · 605 阅读 · 0 评论 -
Data Exploration using Pandas pandas库 数据读取&清洗
原文章:pandas速查手册 英文文章:pandas cheat sheet 如果你想学习Pandas,建议先看两个网站。 pandas官方github:pandas-dev (1)官网:Python Data Analysis Library (2)十分钟入门Pandas:10 Minutes to pandas 在第一次学习Pandas的过程中,你会发现你需要记忆很多的函数和方法。...转载 2018-04-11 21:00:14 · 348 阅读 · 0 评论 -
Matplotlib绘图库的使用 (更新中)
Matplotlib 的用法介绍 Matplotlib 绘图库的使用 matplotlib的定义: matplotlib 是一个Python下的2D绘图库,能够在跨平台的交互环境中产生各种硬拷贝格式的印刷级的图形 1.在jupyter上输出matplotlib 矢量图. 矢量图的好处是,放大后不会出现模糊,可以使用在论文中代替orange画图. #添加一段代码就行 impo...原创 2018-06-01 10:19:06 · 1836 阅读 · 0 评论 -
TrainData2algorthms
1.先把数据集进行读取 import pandas as pd import matplotlib.pyplot as plt with open('sourcedata2.csv')as f: df=pd.read_csv(f,header=0) df .dataframe thead tr:only-child th { text-align: ...原创 2018-07-09 19:33:33 · 399 阅读 · 0 评论