Datasets:
haneulpark
commited on
Update Preprocessing Script.py
Browse files- Preprocessing Script.py +4 -4
Preprocessing Script.py
CHANGED
@@ -61,8 +61,8 @@ for substance_id, alert in problems:
|
|
61 |
|
62 |
#5. Select columns and rename the dataset
|
63 |
|
64 |
-
AA.rename(columns={'X': '
|
65 |
-
newAA = AA[['
|
66 |
|
67 |
#6. Import modules to split the dataset
|
68 |
|
@@ -263,7 +263,7 @@ realistic_train, realistic_test = split_df_into_train_and_test_sets(realistic)
|
|
263 |
|
264 |
#9. Select columns and name the datasets
|
265 |
|
266 |
-
selected_columns = realistic_train[['
|
267 |
selected_columns.to_csv("AggregatorAdvisor_train.csv", index=False)
|
268 |
-
selected_columns = realistic_test[['
|
269 |
selected_columns.to_csv("AggregatorAdvisor_test.csv", index=False)
|
|
|
61 |
|
62 |
#5. Select columns and rename the dataset
|
63 |
|
64 |
+
AA.rename(columns={'X': 'SMILES'}, inplace=True)
|
65 |
+
newAA = AA[['SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
|
66 |
|
67 |
#6. Import modules to split the dataset
|
68 |
|
|
|
263 |
|
264 |
#9. Select columns and name the datasets
|
265 |
|
266 |
+
selected_columns = realistic_train[['SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
|
267 |
selected_columns.to_csv("AggregatorAdvisor_train.csv", index=False)
|
268 |
+
selected_columns = realistic_test[['SMILES', 'substance_id', 'aggref_index', 'logP', 'reference']]
|
269 |
selected_columns.to_csv("AggregatorAdvisor_test.csv", index=False)
|