일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- javascript
- pandas
- single cell
- github
- single cell analysis
- drug development
- CUT&RUN
- Bioinformatics
- julia
- 비타민 C
- HTML
- ChIPseq
- 싱글셀 분석
- CUTandRUN
- single cell rnaseq
- js
- ngs
- drug muggers
- MACS2
- matplotlib
- scRNAseq
- PYTHON
- EdgeR
- Batch effect
- python matplotlib
- CSS
- cellranger
- DataFrame
- scRNAseq analysis
- Git
Archives
- Today
- Total
목록reset_index (1)
바이오 대표
[ Python pandas ] Dataframe row 제거 및 재배열 (drop(.index)), sort_values, reset_index)
# 아래의 Dataframe 에서 중복되는 Row Drop df = df.drop(df[df.duplicated()].index) # by "Y" df = df.sort_values("Y") df = df.reset_index(drop=True) # 만약 drop=True 옵션을 넣어주지 않는다면 그전 index가 새로운 column으로 형성된다.
Python/dataframe (pandas)
2022. 1. 12. 12:34