Skip to content

Instantly share code, notes, and snippets.

View heerensharma's full-sized avatar

Heeren Sharma heerensharma

View GitHub Profile

Code

Takes an input file path as variables file_location

Perferable the single function should be devided into three sub modules.

  1. Reading the file and extracting one by one line e.g. read_file
  2. Function which takes one line as input and then clean the line and enrich the output dictionary (can be made another seperate function for real time counter)
  3. Outputting function. Which can display the output either on stdout or into a specific file with desired formatting.