text: # -*- coding: utf-8 -*-
  """
  Created on Sat May 15 23:18:06 2021
  
  @author: Peter
  """
  import pandas as pd
  import time
  import matplotlib.pyplot as plt
  import numpy as np
  from warzone.document_filter import DocumentFilter
  from warzone.call_of_duty import CallofDuty
  from warzone.analysis import get_weapons, meta_weapons, first_top5_bottom_stats, bucket_stats, previous_next_placement
  from warzone.analysis import match_difficulty, get_daily_hourly_weekday_stats, find_hackers
  from warzone.plots import personal_plot, squad_plot, lobby_plot
  from warzone.regression import Regression
  from warzone.plot import Line, Scatter, Histogram, Table
  pd.set_option('display.max_columns', None)
  
  
  if __name__ == '__main__':
  
      user_input_dict = {
          'repo': 'location of saved data',
          'gamertag': 'your Ganertag',
          'squad': ['squadmate1', 'squadmate2', 'etc'],
          'file_name': 'Match_Data.csv'}
  
      start_timen = time.time()
      cod = CallofDuty(user_input_dict=user_input_dict, squad_data=True, hacker_data=False, streamer_mode=False)
      print(''), print('Cod Built'), print("--- %s seconds ---" % round((time.time() - start_timen), 2))
  
      # doc = DocumentFilter(original_df=cod.our_df, map_choice='mp_e', mode_choice='quad')
      # doc1 = DocumentFilter(original_df=cod.other_df, map_choice='mp_e', mode_choice='quad')
      #
      # first_top5_bottom_info = first_top5_bottom_stats(doc_filter=doc, col_lst='kills')
      # bucket_info = bucket_stats(doc_filter=doc, placement=[0, 6], col_lst='kills')
      # placement_info = previous_next_placement(doc_filter=doc)
      # match_info = match_difficulty(our_doc_filter=doc, other_doc_filter=doc1)
      # time_info = get_daily_hourly_weekday_stats(doc_filter=doc)
      #
      # weapon_info = get_weapons(doc_filter=doc)
      #
      # hacker_info = find_hackers(doc_filter=doc1, y_column='kdRatio', col_lst=['kills', 'deaths'])
      # meta_weapon_info = meta_weapons(doc_filter=doc1, top_5_or_10=True, col='placementPercent', mu=True)
      #
      # personal_plot(doc_filter=DocumentFilter(original_df=cod.our_df, map_choice='mp_e', mode_choice='quad',
      #                                         username='Claim', username_dic=cod.name_uno_dict))
      # lobby_plot(doc_filter=doc)
      # squad_plot(doc_filter=DocumentFilter(original_df=cod.our_df, map_choice='mp_e', mode_choice='quad',
      #                                      username_lst=cod.user.squad_lst, username_dic=cod.name_uno_dict),
      #            col_lst=['kills', 'deaths', 'kdRatio', 'headshots'])
  
  