diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3516cb9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.formatting.provider": "autopep8" +} \ No newline at end of file diff --git a/code/behavior.py b/code/behavior.py new file mode 100644 index 0000000..b89a28a --- /dev/null +++ b/code/behavior.py @@ -0,0 +1,19 @@ +from pathlib import Path +from pandas import read_csv + + +class Behavior: + def __init__(self, datapath: str) -> None: + csv_file = str(sorted(Path(datapath).glob('**/*.csv'))[0]) + self.dataframe = read_csv(csv_file, delimiter=',') + + +def main(datapath: str): + # behabvior is pandas dataframe with all the data + behavior = Behavior(datapath) + + +if __name__ == '__main__': + # Path to the data + datapath = '../data/mount_data/2020-03-13-10_00/' + main(datapath)