digital-cognition-co-in / DigitalCognition

DigitalCognition - Main repo - Core Product
2 stars 2 forks source link

Extract Date Part #67

Open RohitDhankar opened 4 years ago

RohitDhankar commented 4 years ago

Use this sample dataset - csv file == extractDateParts_MAY2020.csv 1/ Write a python method - which will identify and extract a DATE from a given String 2/ After the Date is extracted -- further get these PARTS from this DATE - create separate Columns for each PART which is extracted --

a/ Month of the year -- INTEGER b/ Quarter of the year -- INTEGER c/ Name of the month -- STRING d/ Week of the year -- INTEGER e/ Day of the week -- INTEGER f/ Name of the day -- STRING g/ hr_of_day_24 -- 1300h .. 1400h .. 1500h etc h/ am_or_pm -- AM / PM


Post your code here in a Jupyter Notebook


Any doubts or any further clarifications required kindly contact Rohit - WhatsApp Text = +91-9871050873 or LinkedIn Text = https://www.linkedin.com/in/rohitdhankar/

rajarshighoshal commented 4 years ago

Hi Rohit, here is my code in jupyter please suggest me the edits date_extractor.zip