I have imported a dataset, and need to find how many names in a given column ("name") begin with a vowel and have more than 5 letters.
The below is what I have so far, but it does not seem to be returning the desired values.:
x = re.findall(r'[aeiouAEIOU]\w{5,}',str(name))
Full code for reference:
import re
url = "https://data.nasa.gov/resource/y77d-th95.json"
df = pd.read_json(url, orient='columns')
name = df["name"]
x = re.findall(r'[aeiouAEIOU]\w{5,}',str(name))
print(x)