星空博客

随笔分类 -  pandas

pandas df 排序 按列选取
摘要:# mlist = np.arange(0, math.ceil(max_eqMag), 0.1) # df_b = df_b[df_b['eq_count']>0]# print(df_b)## df_b.sort_values("m",inplace=True,ascending=False)# 阅读全文

posted @ 2021-01-15 09:16 星空博客 阅读(1283) 评论(0) 推荐(0) 编辑

pandas取dataframe特定行/列
摘要:https://www.cnblogs.com/nxf-rabbit75/p/10105271.html 1.按列取、按索引/行取、按特定行列取 import numpy as np from pandas import DataFrame import pandas as pd df=DataFr 阅读全文

posted @ 2021-01-14 17:06 星空博客 阅读(6845) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示