You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, the behavior differs due to the different description of Numpy's import declaration.
-test02_02.py Execution result (from python import numpy as np)
I was not sure if there was a report applicable to the same case, so I am reporting it just in case.
File import using Nunpy (using test02_1.py) does not load properly.
[Execution Result]
-test02_01.py Execution Result (import numpy as np)
ic@DESKTOP-C83DAGF:/mnt/c/Users/ic$ codon run -release /mnt/z/koko/ps3/cd/test02_1.py
array(' 0 1 2\n0 0 8 0\n1 1 5 1\n2 0 9 1\n3 8 20 0\n4 5 5 1\n5 7 82 0\n6 1 31 0\n7 0 34 1\n8 9 86 1\n9 2 5 0\n10 8 7 1\n11 3 95 0\n12 4 34 1\n13 5 69 0\n14 0 72 1\n15 1 1 1\n16 9 29 0\n17 5 51 1\n18 8 8 0')
0.0232806
test02_①
import numpy as np
owari
Also, the behavior differs due to the different description of Numpy's import declaration.
-test02_02.py Execution result (from python import numpy as np)
ic@DESKTOP-C83DAGF:/mnt/c/Users/ic$ codon run -release /mnt/z/koko/ps3/cd/test02_2.py
[[ 0 8 0]
[ 1 5 1]
[ 0 9 1]
[ 8 20 0]
[ 5 5 1]
[ 7 82 0]
[ 1 31 0]
[ 0 34 1]
[ 9 86 1]
[ 2 5 0]
[ 8 7 1]
[ 3 95 0]
[ 4 34 1]
[ 5 69 0]
[ 0 72 1]
[ 1 1 1]
[ 9 29 0]
[ 5 51 1]
[ 8 8 0]]
0.0108597
test02_②
from python import numpy as np
owari
[Execution Procedure]
Execute the following from Windows PowerShell Terminal on Windows in the following order.
・wsl -d Ubuntu-22.04
・codon run -release /mnt/z/koko/ps3/cd/test02_1.py
[Execution environment]
Codon Ver: 0.18
Python Ver: 3.10.8
Windows 10 Pro 22H2(WSL Ubuntu 22.04)
Windows Feature Experience Pack 1000.19055.1000.0
Core(TM) i7-7700HQ
Memory 64GB
[Sampl Code]
-test02_01.py
import numpy as np #------------①
from python import pandas as pd
from python import csv
import time
t00 = time.time()
np0 = np.array(pd.read_csv('/mnt/z/koko/ps3/cd/test.csv', header=None) , dtype = 'int64')
print(np0)
t01 = time.time()
t02 = t01 - t00
print(t02)
print("test02_①")
print("import numpy as np")
print("owari")
-test02_02.py
from python import numpy as np #------------②
from python import pandas as pd
from python import csv
import time
t00 = time.time()
np0 = np.array(pd.read_csv('/mnt/z/koko/ps3/cd/test.csv', header=None) , dtype = 'int64')
print(np0)
t01 = time.time()
t02 = t01 - t00
print(t02)
print("test02_②")
print("from python import numpy as np")
print("owari")
[test.csv]
0 8 0
1 5 1
0 9 1
8 20 0
5 5 1
7 82 0
1 31 0
0 34 1
9 86 1
2 5 0
8 7 1
3 95 0
4 34 1
5 69 0
0 72 1
1 1 1
9 29 0
5 51 1
8 8 0
The text was updated successfully, but these errors were encountered: