social-clusters/main.py

21 lines
457 B
Python

#!/usr/bin/env python3
import os
import sys
from src.main.df_loader import DfLoader
def __main(json_file):
df_loader: DfLoader = DfLoader(json_file)
df = df_loader.get_data_frame()
print('done')
if __name__ == '__main__':
if len(sys.argv) != 2:
print('You must specify the raw_dataset json file')
exit(1)
if not os.path.isfile(sys.argv[1]):
print(f'File {sys.argv[1]} is not exists')
__main(sys.argv[1])