Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Type error Problem of 'Series(data frame) to str'

I followed a code from Kaggle as in the picture.
It changed Series to str. However, when I tried in my notebook, there is TypeError: ‘str’ object is not callable. I don’t know what is the matter.

train_set.head(9)

text = train_set.Review
text

print(type(text))

text_combined = str(text)

enter image description here
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

From what you commented, you overwrote your str function with a variable containing The Capstone project has been getting delayed since JanDont expect yourself to complete the specialization.
Change the assignment to that variable to some other variable name, and restart your kaggle kernet.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading