[英]How to convert a 2D dataframe into a 2D array in python?
我正在处理一个数据集,我发现了每对特征之间的相关性。 二维数据框看起来像这样
我必须遍历所有这些值来选择那些大于某个阈值的值来选择重要的特征。
我认为在这种情况下处理数组会很方便。 如何将其转换为二维数组?
它看起来有点像这样:
使用dataframe.values :什么df.values基本上做的是,让你没有索引的原始NumPy的ndarray。
dataframe.values
df.values
[英]how to convert one column in dataframe into a 2D array in python
[英]How To Convert A Dataframe Column Into 2D Array?
[英]convert Dataframe to 2d Array
[英]How to convert 2d array to set in python
[英]How to convert 3d np array to 2d for pandas dataframe
[英]How to convert 3D array to 2D in python?
[英]How to convert 3D array to a list of 2D arrays in python?
[英]How to copy numpy 2d array in pandas 2d dataframe
[英]how do you convert a dataframe into 2d numpy array
[英]how to convert a list of 2D Points in Python to a dataframe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.