v1.3
This commit is contained in:
@@ -17,7 +17,5 @@
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
name = 'scan'
|
||||
|
||||
from .scan import numpy as np
|
||||
from .scan import pandas as pd
|
||||
Binary file not shown.
Binary file not shown.
@@ -20,14 +20,26 @@
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
def numpy(self, path):
|
||||
def numpy(path, sep=None, decimal=None):
|
||||
|
||||
df=pd.read_csv(path, sep=';',decimal=",",header=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
|
||||
|
||||
def pandas(self, path):
|
||||
def pandas(path, sep=None, decimal=None):
|
||||
|
||||
return pd.read_csv(path, sep=';',decimal=",")
|
||||
if sep is None:
|
||||
sep = ","
|
||||
|
||||
if decimal is None:
|
||||
decimal = "."
|
||||
|
||||
return pd.read_csv(path, sep=sep, decimal=decimal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user