Compare commits
3 Commits
release_up
...
shbijlan-u
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
279a1ba2c0 | ||
|
|
8233533dcd | ||
|
|
89f23e6d50 |
1
.vscode/settings.json
vendored
Normal file
1
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -28,21 +28,13 @@ replaced_distance_vals_df = (replaced_stfor_vals_df.replace({"distance": ".00"},
|
||||
|
||||
normalized_df = replaced_distance_vals_df.astype({"distance": 'float64'})
|
||||
|
||||
|
||||
def time_to_us(time_str):
|
||||
hh, mm , ss = map(int, time_str.split(':'))
|
||||
return (ss + 60 * (mm + 60 * hh)) * (10**6)
|
||||
|
||||
|
||||
temp = pd.DatetimeIndex(normalized_df["pickup_datetime"])
|
||||
normalized_df["pickup_date"] = pd.to_datetime(temp.date)
|
||||
normalized_df["pickup_date"] = temp.date
|
||||
normalized_df["pickup_time"] = temp.time
|
||||
normalized_df["pickup_time"] = normalized_df["pickup_time"].apply(lambda x: time_to_us(str(x)))
|
||||
|
||||
temp = pd.DatetimeIndex(normalized_df["dropoff_datetime"])
|
||||
normalized_df["dropoff_date"] = pd.to_datetime(temp.date)
|
||||
normalized_df["dropoff_date"] = temp.date
|
||||
normalized_df["dropoff_time"] = temp.time
|
||||
normalized_df["dropoff_time"] = normalized_df["dropoff_time"].apply(lambda x: time_to_us(str(x)))
|
||||
|
||||
del normalized_df["pickup_datetime"]
|
||||
del normalized_df["dropoff_datetime"]
|
||||
|
||||
@@ -272,8 +272,7 @@
|
||||
"dependencies:\n",
|
||||
"- python=3.6.2\n",
|
||||
"- pip:\n",
|
||||
" - azureml-core\n",
|
||||
" - azureml-dataset-runtime\n",
|
||||
" - azureml-defaults\n",
|
||||
" - keras==2.4.3\n",
|
||||
" - tensorflow==2.4.3\n",
|
||||
" - numpy\n",
|
||||
|
||||
Reference in New Issue
Block a user