-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-processing new module update #19
base: master
Are you sure you want to change the base?
pre-processing new module update #19
Conversation
new = datetime.strptime(date, '') | ||
df["new_date"] = datetime.strftime() | ||
|
||
ini_time = "Jul 17 2019 11:49AM" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we are seeing a specific time here? Or should it be a comment?
The specific time is the one I used to test, should be commented out. Flirt
is not necessary here but on my local device I imported as much related as
I can to avoid the case that the environment doesn’t work.
…On Fri, Jul 1, 2022 at 00:07 Md Mobashir Hasan Shandhi < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In data_conversion.py
<#19 (comment)>
:
> +# return delta
+# def convert_string(self,data):
+# return str()
+# def convert_list(self, data):
+# return list()
+# def convert_tuple(self, data):
+# return tuple()
+# def convert_set(self, data):
+# return set()
+"""
+lst = []
+for date in df:
+ new = datetime.strptime(date, '')
+df["new_date"] = datetime.strftime()
+
+ini_time = "Jul 17 2019 11:49AM"
Why we are seeing a specific time here? Or should it be a comment?
—
Reply to this email directly, view it on GitHub
<#19 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS47RAW3XVXVYSSYZQXFF33VRZVIFANCNFSM5ZWN2PTQ>
.
You are receiving this because you authored the thread.Message ID:
<DigitalBiomarkerDiscoveryPipeline/Pre-process/pull/19/review/1025695115@
github.com>
|
|
||
|
||
if __name__ == '__main__': | ||
print(df) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we seeing these lines of code here?
data_conversion.py
Outdated
import pandas as pd | ||
from datetime import datetime, timedelta | ||
|
||
df = pd.read_csv("test_conversion.csv") | ||
print(df) | ||
def type_conversion(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you going to pass any arguments to the function?
data_conversion.py
Outdated
df = pd.read_csv("test_conversion.csv") | ||
print(df) | ||
def type_conversion(): | ||
"""Function that do data type conversion for time features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are still working on this function. I don't think we are stating all the information needed here.
# lst.append(difference) | ||
# | ||
# | ||
# df["converted_time"] = lst | ||
|
||
|
||
|
||
|
||
if __name__ == '__main__': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you creating this code for the case study? How the full code is relevant to the pre-process module? For the case study, we need part of the code, you can just have that in the sample code for the case study. You do not need to create a separate .py file.
@@ -183,4 +183,8 @@ various health monitoring sensors | | |||
|
|||
### Continued Development | |||
|
|||
### Data type conversion functions: | |||
data_conversion: with funciton used to convert the time feature in the csv file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be: "date_conversion: function to convert the format of time in a csv file"?
new version of the data conversion functions |
data_conversion