当前位置:网站首页>Dataframe extracts data from a column and converts it into a list
Dataframe extracts data from a column and converts it into a list
2022-06-26 01:44:00 【Passion6378】
df as follows , Purpose : Extract the data of English column , And turn it into a list .

1,df[" English "] by object type , First to int type .
array = pd.to_numeric(df[" English "]) # object Type to int type
print(array)
2, then array To list
list = array.tolist() # array To list
print(list)
边栏推荐
- Shengxin weekly issue 34
- readv & writev
- web测试
- Accumulation and summary of activation function
- Abnova丨CSV 单克隆抗体解决方案
- Textcnn paper Interpretation -- revolutionary neural networks for sense classification
- Exploring temporary information for dynamic network embedding
- 秀场精灵陈梓桐 受邀担任第六季完美童模全球总决赛首席体验官
- Worthington胶原蛋白酶的多类型研究
- 2021-1-15 摸鱼做的笔记Ctrl+c /v来的
猜你喜欢

Log4j2 vulnerability

23. histogram equalization

27. template match

Oracle database startup backup preparation

Postman斷言對應脚本的解釋

Explication du script correspondant à l'assertion Postman

如何为政企移动办公加上一道“安全锁”?

RT thread project engineering construction and configuration - (Env kconfig)

浅谈接口测试(二)

15 `bs object Node name Node name String` get nested node content
随机推荐
25. histogram comparison
wifi 相关知识详解
26. histogram back projection
MySQL图书借阅系统项目数据库建库表语句(组合主键、外键设置)
Obtain WiFi password through computer (only connected WiFi)
Postman断言对应脚本的解释
leetcode 300. Longest increasing subsequence (medium)
Viwi interface
Talking about interface test (I)
2021 - 1 - 15 notes de pêche Ctrl + C / V
Basic concepts of machine learning
27. template match
JSON basic syntax
Abnova丨CSV 单克隆抗体解决方案
Web Testing
Explication du script correspondant à l'assertion Postman
微信朋友圈测试点
Abnova丨CMV CISH 探头解决方案
App test (I)
GNN (graph neural network) introduction vernacular