Alealejandrooo commited on
Commit
7bbe80f
1 Parent(s): d85cd72

Update process.py

Browse files
Files changed (1) hide show
  1. process.py +1 -6
process.py CHANGED
@@ -24,11 +24,6 @@ def process_data(files_mindbody, files_medserv, tolerance, progress=gr.Progress(
24
  except Exception as e:
25
  print(f"An error occurred while processing client names: {e}")
26
 
27
- try:
28
- mindbody['DOS'] = pd.to_datetime(mindbody['DOS'], format='%d/%m/%Y')
29
- except Exception as e:
30
- print(f"An error occurred while converting dates in mindbody: {e}")
31
-
32
  try:
33
  # Split dates if they contain commas in the 'DOS' column of medserv
34
  medserv['DOS'] = medserv['DOS'].astype(str)
@@ -52,7 +47,7 @@ def process_data(files_mindbody, files_medserv, tolerance, progress=gr.Progress(
52
  rows = len(mindbody)
53
 
54
  # Iterate through each row in the mindbody DataFrame
55
- for idx in progress(range(rows), desc='Analyzing files...'):
56
  # Extract relevant information from the current row
57
  date = mindbody.iloc[idx]['DOS']
58
  first_name = mindbody.iloc[idx]['First Name']
 
24
  except Exception as e:
25
  print(f"An error occurred while processing client names: {e}")
26
 
 
 
 
 
 
27
  try:
28
  # Split dates if they contain commas in the 'DOS' column of medserv
29
  medserv['DOS'] = medserv['DOS'].astype(str)
 
47
  rows = len(mindbody)
48
 
49
  # Iterate through each row in the mindbody DataFrame
50
+ for idx in progress.tdqm(range(rows), desc='Analyzing files...'):
51
  # Extract relevant information from the current row
52
  date = mindbody.iloc[idx]['DOS']
53
  first_name = mindbody.iloc[idx]['First Name']