上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
摘要: 环境配置 Appium环境搭建超详细教程:https://zhuanlan.zhihu.com/p/49193525 AppiumDesktop控制手机和安卓模拟器:https://zhuanlan.zhihu.com/p/49428952 自动化测试 import time import unit 阅读全文
posted @ 2021-04-08 13:41 OTAKU_nicole 阅读(146) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame,Series import pandas as pd import numpy as np data = DataFrame({'k1':['A']*3+['B']*4, 'k2':[1,1,2,3,3,4,4]}) print(data) 阅读全文
posted @ 2021-03-15 14:50 OTAKU_nicole 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 将 take_last=True 改为 keep='last' 阅读全文
posted @ 2021-03-15 14:26 OTAKU_nicole 阅读(505) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame,Series import numpy as np a = Series([np.nan,2.5,np.nan,3.5,4.5,np.nan], index=['f','e','d','c','b','a']) print(a) ''' f 阅读全文
posted @ 2021-03-15 10:50 OTAKU_nicole 阅读(444) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame,Series import pandas as pd import numpy as np arr = np.arange(12).reshape((3,4)) print(arr) ''' [[ 0 1 2 3] [ 4 5 6 7] [ 阅读全文
posted @ 2021-03-04 17:08 OTAKU_nicole 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 运行发现 PytestUnknownMarkWarning: Unknown pytest.mark.auth - is this a typo? You can register custom marks to avoid this warning - for details, see https 阅读全文
posted @ 2021-03-04 11:38 OTAKU_nicole 阅读(400) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame left = DataFrame([[1,2],[3,4],[5,6]],index=['a','c','e'],columns=['item1','item2']) right = DataFrame([[7,8],[9,10],[11,1 阅读全文
posted @ 2021-02-25 15:35 OTAKU_nicole 阅读(749) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame import pandas as pd df1 = DataFrame({'key':['b','b','a','c','a','a','b'], 'data1':range(7)}) df2 = DataFrame({'key':['a', 阅读全文
posted @ 2021-02-25 14:32 OTAKU_nicole 阅读(81) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame import pandas as pd frame = DataFrame({"k1": ["one"]*3+["two"]*4, "k2": [1, 1, 2, 3, 3, 4, 5]}) # 检查是否重复 frame.duplicated 阅读全文
posted @ 2021-02-23 09:53 OTAKU_nicole 阅读(253) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd from pandas import DataFrame df1 = DataFrame([[1.4,2],[7.1,-4.5], [2,3],[0.75,-1.3]], columns=['one','two']) print(df1) df2 = Data 阅读全文
posted @ 2021-02-22 20:29 OTAKU_nicole 阅读(490) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页