일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- DataFrame
- CUT&RUN
- julia
- ngs
- Bioinformatics
- CUTandRUN
- Batch effect
- drug development
- javascript
- single cell
- github
- 싱글셀 분석
- Git
- ChIPseq
- drug muggers
- scRNAseq analysis
- single cell rnaseq
- MACS2
- cellranger
- scRNAseq
- CSS
- PYTHON
- js
- pandas
- matplotlib
- single cell analysis
- HTML
- 비타민 C
- EdgeR
- python matplotlib
Archives
- Today
- Total
바이오 대표
[ Python pandas ] Dataframe 을 tensor (array) 로 변경하기 - df.values 본문
Python/dataframe (pandas)
[ Python pandas ] Dataframe 을 tensor (array) 로 변경하기 - df.values
바이오 대표 2022. 2. 7. 23:39
아래의 Dataframe 을 2D tensor 로 바꾸고 싶을 때, Dataframe.values 를 이용할 수 있다.

↓ Dataframe.values

* Drug 제외하고 Fingerprint 만 으로 2D Tensor 을 만들고 싶다면
↓ Dataframe.iloc[ ].values

'Python > dataframe (pandas)' 카테고리의 다른 글
[ Python pandas ] Dataframe 을 List 로 변환하기 - to_list( ) / tolist( ) (0) | 2022.02.16 |
---|---|
[ Python pandas ] drop( ) - row/column 삭제하기 (0) | 2022.02.10 |
[ Python pandas ] NaN 값이 포함되어있는 행 추출 - df.isna() (0) | 2022.02.07 |
[ Python pandas ] 원하는 행, 열(iloc/loc), 값(iat/at) 추출 (0) | 2022.02.05 |
[ Python pandas] 작은 Dataframe에 더 큰 테이블에서 맞는 조건만 합치기 (= 합치고, 중복 제거) (0) | 2022.01.20 |