Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -71,11 +71,13 @@ def process_data(input_data: CoachingCodeInput):
|
|
| 71 |
journal_file = client.open_by_url(journal_file_path).worksheet('Sheet1')
|
| 72 |
panic_button_file = client.open_by_url(panic_button_file_path).worksheet('Sheet1')
|
| 73 |
test_file = client.open_by_url(test_file_path).worksheet('Sheet1')
|
|
|
|
| 74 |
|
| 75 |
# Step 1: Read the Google Sheets into DataFrames
|
| 76 |
journal_df = pd.DataFrame(journal_file.get_all_values())
|
| 77 |
panic_button_df = pd.DataFrame(panic_button_file.get_all_values())
|
| 78 |
test_df = pd.DataFrame(test_file.get_all_values())
|
|
|
|
| 79 |
|
| 80 |
# Label the columns manually
|
| 81 |
journal_df.columns = ['user_id', 'productivity_yes_no', 'productivity_rate']
|
|
|
|
| 71 |
journal_file = client.open_by_url(journal_file_path).worksheet('Sheet1')
|
| 72 |
panic_button_file = client.open_by_url(panic_button_file_path).worksheet('Sheet1')
|
| 73 |
test_file = client.open_by_url(test_file_path).worksheet('Sheet1')
|
| 74 |
+
print("Google sheet open")
|
| 75 |
|
| 76 |
# Step 1: Read the Google Sheets into DataFrames
|
| 77 |
journal_df = pd.DataFrame(journal_file.get_all_values())
|
| 78 |
panic_button_df = pd.DataFrame(panic_button_file.get_all_values())
|
| 79 |
test_df = pd.DataFrame(test_file.get_all_values())
|
| 80 |
+
print("Google sheet read")
|
| 81 |
|
| 82 |
# Label the columns manually
|
| 83 |
journal_df.columns = ['user_id', 'productivity_yes_no', 'productivity_rate']
|