pandas.DataFrame.as_matrix
来源:互联网 发布:php 上传图片卡住 编辑:程序博客网 时间:2024/05/21 10:12
from:http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.as_matrix.html
DataFrame.
as_matrix
(columns=None)[source]Convert the frame to its Numpy-array representation.
columns: list, optional, default:None
If None, return all columns, otherwise, returns specified columns.
values : ndarray
If the caller is heterogeneous and contains booleans or objects, the result will be of dtype=object. See Notes.
See also
pandas.DataFrame.values
Notes
Return is NOT a Numpy-matrix, rather, a Numpy-array.
The dtype will be a lower-common-denominator dtype (implicit upcasting); that is to say if the dtypes (even of numeric types) are mixed, the one that accommodates all will be chosen. Use this with care if you are not dealing with the blocks.
e.g. If the dtypes are float16 and float32, dtype will be upcast to float32. If dtypes are int32 and uint8, dtype will be upcase to int32. By numpy.find_common_type convention, mixing int64 and uint64 will result in a flot64 dtype.
This method is provided for backwards compatibility. Generally, it is recommended to use ‘.values’.
- pandas.DataFrame.as_matrix
- Pandas DataFrame
- Pandas(DataFrame)
- pandas-dataframe
- pandas.DataFrame.any与pandas.DataFrame.all
- Pandas之DataFrame操作
- Pandas.Dataframe使用小结
- Pandas之Dataframe操作
- pandas.DataFrame 操作
- Pandas学习:DataFrame
- pandas.DataFrame.to_csv
- pandas string转dataframe
- Pandas DataFrame操作
- pandas之DataFrame创建
- pandas.Dataframe 的合并
- pandas.DataFrame.iterrows
- pandas.DataFrame.append
- pandas 中 DataFrame
- 利用反射机制对XML文件进行解析
- BZOJ 3282 Tree link cut trees
- Linux正则表达式总结
- Spring MVC 复杂数据绑定
- Scala I
- pandas.DataFrame.as_matrix
- 活动选择问题—贪心算法
- ADB调试命令
- ucgui
- 职业规划
- Scala II
- 零基础简单爬虫制作(以wjyt-china企业黄页爬虫为例)(下)
- GIT 查看/修改用户名和邮箱地址
- 基于嵌入式Linux的无线路由器设计——Bridged Adapter网桥模式