import sys
from os.path import join
import os
import pandas as pd


def save_binary(data_dir,
                active_days = 'active_days.csv',
                cycles = 'cycles.csv',
                tracking = 'tracking.csv',
                users = 'users.csv'):
    """
    loads the data from the csv files
    then pickles them.
    """

    df_active_days = pd.read_csv(join(data_dir, active_days))
    df_cycles = pd.read_csv(join(data_dir, cycles))
    df_users = pd.read_csv(join(data_dir, users))
    df_tracking = pd.read_csv(join(data_dir, tracking))
    os.makedirs('../binary', exist_ok=True)
    df_active_days.to_pickle('../binary/active_days.pkl')
    df_cycles.to_pickle('../binary/cycles.pkl')
    df_users.to_pickle('../binary/users.pkl')
    df_tracking.to_pickle('../binary/tracking.pkl')


if __name__ == '__main__':
    data_fname = sys.argv[-1]
    save_binary(data_fname)

@@ -87,16 +87,55 @@
 ta_dir,%0A
+                binary_dir = 'binary',%0A
         
@@ -613,19 +613,18 @@
 irs(
-'../
 binary
-'
+_dir
 , ex
@@ -665,27 +665,42 @@
 _pickle(
-'../binary/
+os.path.join(binary_dir, '
 active_d
@@ -704,24 +704,25 @@
 e_days.pkl')
+)
 %0A    df_cycl
@@ -734,27 +734,42 @@
 _pickle(
-'../binary/
+os.path.join(binary_dir, '
 cycles.p
@@ -768,24 +768,25 @@
 cycles.pkl')
+)
 %0A    df_user
@@ -797,27 +797,42 @@
 _pickle(
-'../binary/
+os.path.join(binary_dir, '
 users.pk
@@ -834,16 +834,17 @@
 rs.pkl')
+)
 %0A    df_
@@ -866,19 +866,34 @@
 kle(
-'../binary/
+os.path.join(binary_dir, '
 trac
@@ -902,16 +902,17 @@
 ng.pkl')
+)
 %0A%0A%0Aif __

Update save_binary to newer version