changes on scan
This commit is contained in:
BIN
yoshi-seals1.3.3/Seals/scan/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
yoshi-seals1.3.3/Seals/scan/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
BIN
yoshi-seals1.3.3/Seals/scan/__pycache__/scan.cpython-38.pyc
Normal file
BIN
yoshi-seals1.3.3/Seals/scan/__pycache__/scan.cpython-38.pyc
Normal file
Binary file not shown.
@@ -20,18 +20,12 @@
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
def numpy(path, sep=None, decimal=None):
|
||||
def numpy(path, sep=None):
|
||||
|
||||
if sep is None:
|
||||
sep = ","
|
||||
|
||||
if decimal is None:
|
||||
decimal = "."
|
||||
|
||||
df=pd.read_csv(path, sep=sep, decimal=decimal, header=None)
|
||||
array = df.to_numpy()
|
||||
|
||||
return array
|
||||
return np.genfromtxt(path, delimiter=sep)
|
||||
|
||||
def pandas(path, sep=None, decimal=None):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user