일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- CSS
- julia
- matplotlib
- javascript
- scRNAseq
- HTML
- Git
- scRNAseq analysis
- 싱글셀 분석
- single cell analysis
- pandas
- Bioinformatics
- MACS2
- drug muggers
- 비타민 C
- single cell rnaseq
- cellranger
- ngs
- ChIPseq
- Batch effect
- js
- CUT&RUN
- python matplotlib
- drug development
- CUTandRUN
- github
- PYTHON
- EdgeR
- DataFrame
- single cell
Archives
- Today
- Total
목록savetxt (1)
바이오 대표
[ Python ] NumPy Array 데이터 csv (ASCII) 로 저장하기 (to_csv( ), savetxt( ))
to .csv (ASCII) to .npy (binary) to .npz (compressed) Numpy arrary 를 csv 형태로 저장할 수 있는 방법에는 두가지가 있다. [1] pandas 이용해서 dataframe으로 변경 후 df.to_csv( ) [2] np.savetxt( ) [1] pandas 이용해서 dataframe으로 변경 후 df.to_csv( ) import pandas as pd # numpy array arr # numpy array to pandas dataframe df = pd.DataFrame(arr) df.to_csv("myArray.csv", index=Fase) [2] np.savetxt( ) import numpy as np np.savetxt("myArray..
Python/array (numpy)
2022. 2. 6. 13:51