Act fast, special offers end soon! Up to $294 is savings when you get Premium today.
Get offer codes

Getting AttributeError

Screen Link:

My Code:

pattern=r"\[(\w+)\]"
tag_5_matches2=tag_5.str.extract(pattern).value_counts()

What I expected to happen:
Successful execution

What actually happened:

'DataFrame' object has no attribute 'value_counts'

I am getting the error in the jupyter notebook but the same code runs fine on dq platform why so?

1 Like

Hi @joshi.ananya.joshi1:

Kindly refer to this article. Check the versioning and then change the version accordingly (to match DQ’s or change the code to match the parameters in your local version).

1 Like