feat: make a function that gives dataframes from csv,
make_df
This commit is contained in:
parent
ee9d5b3c0a
commit
e2fc16f145
@ -1,4 +1,21 @@
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
class CSV_handler:
|
||||||
|
|
||||||
|
self.working_dir
|
||||||
|
|
||||||
|
def __init__():
|
||||||
|
self.working_dir = str(Path.cwd())
|
||||||
|
|
||||||
|
def make_df(self, filename)
|
||||||
|
filepath = self.working_dir + str(filename)
|
||||||
|
df = pd.read_csv(filepath)
|
||||||
|
return df
|
||||||
|
|
||||||
|
def get_time_emg_table(filepaths, subject_nr):
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_time_emg_table(filepath, )
|
|
||||||
|
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
import numpy
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user