기록
csv to Tensor 본문
728x90
pandas → numpy → Tensor
pdata=pd.read_csv("test.csv",header=None)
ndata=np.array(pdata)
tdata=torch.Tensor(ndata)
'Language > python' 카테고리의 다른 글
andronix moded OS에서 VScode가 실행되지 않을 때 (0) | 2024.03.17 |
---|---|
pykrx (0) | 2021.03.01 |
Here’s how to make Pandas Iteration 150x Faster (0) | 2020.02.02 |
iPython console에서 pool 실행시 print 안 되는 경우 (0) | 2019.12.25 |
Spyder에서 multiprocessing 시 hang 해결 방안 (0) | 2019.12.25 |