cannot import name ‘Counter’ from ‘collection’ [closed]

  python

whenever I try to do this "from collections import counter", I am getting output as follows plz let me know why? btw im using python version 3.8

this is the error that i get:

ImportError                               Traceback (most recent call last)
<ipython-input-7-34e8a786118b> in <module>
     11 import seaborn as sns
     12 
---> 13 from collection import Counter
     14 
     15 from sklearn.model_selection import train_test_split

ImportError: cannot import name 'Counter' from 'collection' (C:Anacondaenvsprojectlibsite-packagescollection__init__.py)

Source: Python Questions

LEAVE A COMMENT