摘要:
环境配置 Appium环境搭建超详细教程:https://zhuanlan.zhihu.com/p/49193525 AppiumDesktop控制手机和安卓模拟器:https://zhuanlan.zhihu.com/p/49428952 自动化测试 import time import unit 阅读全文
摘要:
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) 阅读全文
摘要:
将 take_last=True 改为 keep='last' 阅读全文
摘要:
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 阅读全文
摘要:
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] [ 阅读全文
摘要:
运行发现 PytestUnknownMarkWarning: Unknown pytest.mark.auth - is this a typo? You can register custom marks to avoid this warning - for details, see https 阅读全文
摘要:
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 阅读全文
摘要:
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', 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文