![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 80
python
IvoryPillar
这个作者很懒,什么都没留下…
展开
-
Notes of Pandas[1]:Indexing and selecting
Indexing:行:.loc[ ‘a’ ] : ‘a’为index名,也可以是数字。 # by label.iloc[5] : 只能是数字,表示第几行。 # by position列:df['A']df [['A', 'B']] # 注意index多行 传入列表df.A # df.C 用于赋值,C不能是新增列, 新增列只能用df['C']This will not modify df because the column alignment is befor...原创 2022-04-26 10:45:07 · 84 阅读 · 0 评论 -
matplotlib基础1:绘图基本属性设置 -- xticks(loc,labels)格式化转义标记
<div class="blog-content-box"> <div class="article-header-box"> <div class="article-header"> <div class="article-title-box"> <h1 class="title-article">matplotlib基础1:绘图基本属性设置 -- xticks(...转载 2020-07-12 10:38:12 · 2091 阅读 · 0 评论 -
python property的用法
set 和 get class attributes…property(fget=None, fset=None, fdel=None, doc=None)class Celsius: def __init__(self, temperature = 0): self._temperature = temperature def to_fahrenheit(...原创 2020-02-13 04:48:45 · 171 阅读 · 0 评论