Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #4: Date Parsing

Milanz
8 - Asteroid

Done 😉

Spoiler
Milanz_0-1588855807597.png

 

jarrod
ACE Emeritus
ACE Emeritus

not quite as bad when you get into it, but definitely 10x easier in python using the dateutil package

Spoiler
jarrod_0-1588973336232.png

 

 #SnakingMyWayThruChallenges

jimmygatliff
6 - Meteoroid
Spoiler
Originally had 7 different RegEx tools, until I realized I could use the + and * symbols. 

Added a join tool to check results and make sure the dates matched to the solution output.

MRod
8 - Asteroid

I'm learning more RegEx and appreciate the solution. In my solution, I created all possible values for Month, Date, and Year and then created the new date.

 

Spoiler
markrod30_0-1589162866035.png

 

jarrod
ACE Emeritus
ACE Emeritus

just had a quick edit to my previous response - Python can be cleaned up further with the following Formula:

Spoiler
from ayx import Alteryx
import dateutil.parser as dparser
import numpy as np


df = Alteryx.read('#1')

df['datetime'] = df['Field_1'].apply(lambda row: 
                                     dparser.parse(row,fuzzy=True))
    
Alteryx.write(df,1)

The "apply(lambda)" allows for a row by row calculation and is quite fast.  

praveenskumar
7 - Meteor

The tools I used in this solution are

  1. RegEx
  2. Formula
DMContente
8 - Asteroid

My solution, from a while ago

jiuh_park
6 - Meteoroid

Tried using various tools to practice 🙂

AcevedoYo
8 - Asteroid

First time using RegEx! It wasn't as scary as I thought it would be to pick up although it's very obvious I still have a lot to learn

 

Spoiler
YomaraA_0-1590151028702.png

 

deviseetharaman
11 - Bolide
Spoiler
Not sure why I am not able to parse Nov 16 1900 with datetimeparse function.