发布时间:2023-06-27 11:00
Pandas
import numpy as np
import pandas as pd
arr1=np.arange(3,10)
s1=pd.Series(arr1)
print(s1)
import numpy as np
import pandas as pd
dic={'a':10,'b':20,'c':30,'d':40,'e':50}
s1=pd.Series(dic)
print(s1)
import numpy as np
import pandas as pd
arr1=np.arange(3,15).reshape(4,3)
df1=pd.DataFrame(arr1)
print(df1)
import numpy as np
import pandas as pd
dic={'a':[1,2,3,4],'b':[5,6,7,8],'c':[9,12,11,12],'d':[13,14,15,16]}#通过字典创建的,标签是按照列存放的
df1=pd.DataFrame(dic)
print(df1)
#通过字典创建的,标签是按照列存放的
列名和索引都是可以改变的
0号标签取出,第0行
Python+Pytest+Appium+Allure移动端自动化测试框架搭建(二)
Python报错SyntaxError:unexpected EOF while parsing的解决办法
译:Two-stream convolutional networks for action recognition in videos
从傅里叶级数(Fourier series)到离散傅里叶变换(Discrete Fourier transform)
JS中的for...in和for...of循环语句有什么区别
R计算两列数据的相关系数_数据相关性分析 correlation - R实现
2022P02014139杨智关于香农编码、哈夫曼编码和费诺编码的比较