pxovela commited on
Commit
fffcf2e
1 Parent(s): 7c69cac

Upload prompt_dumber.ipynb

Browse files
Files changed (1) hide show
  1. prompt_dumber.ipynb +17 -0
prompt_dumber.ipynb CHANGED
@@ -108,6 +108,23 @@
108
  " batch.to_csv(f'batch_outputs/batch_{i+1}_output.csv', index=False)\n",
109
  " print(f\"Saved Batch {i+1} to CSV.\")"
110
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
112
  ],
113
  "metadata": {
 
108
  " batch.to_csv(f'batch_outputs/batch_{i+1}_output.csv', index=False)\n",
109
  " print(f\"Saved Batch {i+1} to CSV.\")"
110
  ]
111
+ },
112
+ {
113
+ "cell_type": "markdown",
114
+ "metadata": {},
115
+ "source": [
116
+ "import pandas as pd\n",
117
+ "import glob\n",
118
+ "\n",
119
+ "# Generate a list of all CSV files in the folder\n",
120
+ "files = glob.glob('batch_outputs/data_to_mix/*.csv')\n",
121
+ "\n",
122
+ "# Read each file into a DataFrame and store them in a list\n",
123
+ "dfs = [pd.read_csv(file) for file in files]\n",
124
+ "\n",
125
+ "# Concatenate all the DataFrames together\n",
126
+ "combined_df = pd.concat(dfs, ignore_index=True)\n"
127
+ ]
128
  }
129
  ],
130
  "metadata": {