- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 80字
- 2021-07-02 19:34:33
pandas dataframe
A pandas dataframe is useful when we have some non-numerical labels or values in our matrix. It does not require homogeneous data, unlike Numpy. Columns can be named. There are also functions such as melt() and pivot_table() that add convenience in reshaping the table to facilitate analysis and plotting.
To convert a list into a pandas dataframe, we do the following:
import pandas as pd
pd.DataFrame(evens)
You can also convert a numpy array into a pandas dataframe.
推薦閱讀
- Mastering macOS Programming
- Learning Python by Building Games
- Java EE 8 Application Development
- PySide 6/PyQt 6快速開發與實戰
- 移動互聯網軟件開發實驗指導
- MySQL入門很輕松(微課超值版)
- Statistical Application Development with R and Python(Second Edition)
- Deep Learning with R Cookbook
- 從零開始學Selenium自動化測試:基于Python:視頻教學版
- 大數據時代的企業升級之道(全3冊)
- 微信小程序開發邊做邊學(微課視頻版)
- Offer來了:Java面試核心知識點精講(框架篇)
- Apache Kafka 1.0 Cookbook
- PhoneGap 3.x Mobile Application Development Hotshot
- Clojure High Performance Programming