Advertisement
mcaurette

Untitled

Apr 29th, 2024 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. def line_to_data(line):
  2.     line_data = {
  3.         'operation': line[0:2],
  4.         'bank_code': line[2:7],
  5.         'guichet': line[11:16],
  6.         'devise': line[16:19],
  7.         'account': line[21:32],
  8.         'operation2': line[32:34],
  9.         'date': line[34:40],
  10.         'libele': line[40:81],
  11.         'amount': line[90;103],
  12.         'magic_decimal': line[103:104]
  13.     }
  14.     return line_data
  15.  
  16.  
  17.  
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement