Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEASimilar to others, I was able to match up the first 2 answers, but the 3rd is off. Perhaps the instructions need to be clarified a bit!
@SylviaP That would explain the discrepancy... I wasn't factoring in 2 word languages when constructing the RegEx!
My goals for this challenge were to use some tools I don't typically use and to embrace AMP. My answers are also a little different, though I think I can explain why.
I also noticed that the tmdb_5000_movies.csv threw some import errors where 3 records had new lines that tripped up the import. I updated the .csv file so there wouldn't be any import issues (which I did outside of Alteryx and honestly feels like "cheating" but all is fair in love and war).
Interesting exploration. Questions 1 & 2 are straight forward. Question 3 was more subjective, especially relative to the expected results. I, like others, did not come up with the result, but I think I understand why (see below).
First, here’s my workflow – it includes an exploration “leg” as I was attempting to account for why there were a variety of answers:
Exploring further into the languages, there are two fields that come out a JSON Parse (which in my opinion is easier than using REGEX). There appears to be a language_code and the language_name. The problem with the name is:
The REGEX ("name":\s"\w+") path that some have taken does not recognize the Unicode strings. This is why, I believe, they (and the Author) are getting lower numbers. But there are, in fact, more languages when you allow the JSON Parse to do it’s thing.
This led me to conclude that using the language_code was more thorough and encompassing. This took care of blank values or when name values might be spelled in different ways. See numbered examples 1 and 2 for values that came from Unicode. Example numbers 2 and 3 for multiple values per language_code.
Unicode examples:
JSON Parsed Values Derivatives:
Anyway, fun challenge, and hope this helps others determine if they want to land on the expected result versus what I’m concluding is the “spirit of the ask.”
-Jay
Sorry, I fogot to attach my workflos - here it is: