Adding comment as answer since it solved the problem. count is somewhat of a protected keyword in DataFrame API, so naming columns count is dangerous. In your case you could circumvent the error by not using the dot notation, but bracket based column access, e.g.

info["count"]
Answer from LiMuBei on Stack Overflow
🌐
Databricks
kb.databricks.com › python › function-object-no-attribute
AttributeError: 'function' object has no attribute
May 19, 2022 - Problem You are selecting columns from a DataFrame and you get an error message. ERROR: AttributeError: 'function' object has no attribute '_get_object_id'
Discussions

AttributeError: 'numpy.int64' object has no attribute '_get_object_id'
~/.virtualenvs/iv/lib/python3.... += ";" + interface 297 else: --> 298 command_part = REFERENCE_TYPE + parameter._get_object_id() 299 300 command_part += "\n" AttributeError: 'numpy.int64' object has no attribute '_get_object_id'... More on github.com
🌐 github.com
2
May 19, 2021
what is "AttributeError: 'function' object has no attribute 'find'"
Whatever you are passing in when you call morseToText is a function, not a string. More on reddit.com
🌐 r/learnpython
11
1
June 18, 2022
Object has no attribute '_get_object_id' - Scripting - Eclipse Capella Forum
Hello, I am interested in the OLD Requirements elements in Capella, theses ones: I added a method into the Physical Archi Class to be able to COLLECT the > requirements Packages (pkg): def get_reqPKG3(self): “”" … More on forum.mbse-capella.org
🌐 forum.mbse-capella.org
0
May 23, 2022
Error with BertTokenizerFast: AttributeError - 'function' object has no attribute 'get'
Hey everyone, I’m stuck while following a HuggingFace tutorial on training a text emotion recognition model. https://www.youtube.com/watch?v=u–UVvH-LIQ Almost there, but when I tried running trainer.train(), it threw an error: You're using a BertTokenizerFast tokenizer. More on discuss.huggingface.co
🌐 discuss.huggingface.co
0
0
October 8, 2023
🌐
AWS re:Post
repost.aws › questions › QUvWrsRjenSrqHLJqLpy4DWg › attributeerror-dataframe-object-has-no-attribute-get-object-id
AttributeError: 'DataFrame' object has no attribute '_get_object_id' | AWS re:Post
October 11, 2018 - Using the Zeppilin notebook server, I have written the following script. The initialization is taken from the template created in glue, but the rest of it is custom. I'm getting the error: ``` Att...
🌐
GitHub
github.com › databricks › koalas › issues › 2161
AttributeError: 'numpy.int64' object has no attribute '_get_object_id' · Issue #2161 · databricks/koalas
May 19, 2021 - ~/.virtualenvs/iv/lib/python3.... += ";" + interface 297 else: --> 298 command_part = REFERENCE_TYPE + parameter._get_object_id() 299 300 command_part += "\n" AttributeError: 'numpy.int64' object has no attribute '_get_object_id'...
Published   May 19, 2021
Author   lepmik
🌐
Cumulative Sum
cumsum.wordpress.com › 2020 › 10 › 10 › pyspark-attributeerror-dataframe-object-has-no-attribute-_get_object_id
[pyspark] AttributeError: ‘DataFrame’ object has no attribute ‘_get_object_id’
October 10, 2020 - df[df.id.isin(df2.select('id'))].show() ... ‘_get_object_id’ · The reason being that isin expects actual local values or collections but df2.select('id') returns a data frame....
🌐
Itsourcecode
itsourcecode.com › home › ‘dataframe’ object has no attribute ‘_get_object_id’ [fixed]
'dataframe' object has no attribute '_get_object_id' [FIXED]
March 28, 2023 - attributeerror: 'dataframe' object has no attribute '_get_object_id' in Python can be easily solved by upgrading your Pandas or using the reset_index() method instead of _get_object_id() method.
🌐
Reddit
reddit.com › r/learnpython › what is "attributeerror: 'function' object has no attribute 'find'"
r/learnpython on Reddit: what is "AttributeError: 'function' object has no attribute 'find'"
June 18, 2022 -
morseCodeM={".-":"A",
            "-...":"B",
            "-.-.":"C",
            "-..":"D",
            ".":"E",
            "..-.":"F",
            "--.":"G",
            "....":"H",
            "..":"I",
            ".---":"J",
            "-.-":"K",
            ".-..":"L",
            "--":"M",
            "-.":"N",
            "---":"O",
            ".--.":"P",
            "--.-":"Q",
            ".-.":"R",
            "...":"S",
            "-":"T",
            "..-":"U",
            "...-":"V",
            ".--":"W",
            "-..-":"x",
            "-.--":"Y",
            "--..":"Z",
            " / ":" "}
def morseToText(inp):
  out=""
  while(inp!=" "):
    for i in morseCodeM:
      if(inp.find(i)!=-1):    <-----------------------
        out=out+morseCodeM[i]
        inp2=list(inp)
        inp2[inp.find(i):inp.find(i)+(len(i)-1)]=""
        inp="".join(inp2)
        return out

I honestly don't know whats wrong it just gives the error :"AttributeError: 'function' object has no attribute 'find'" on the line with the arrow .

edit: the code is about converting morse code to text

🌐
Mbse-capella
forum.mbse-capella.org › scripting
Object has no attribute '_get_object_id' - Scripting - Eclipse Capella Forum
May 23, 2022 - Hello, I am interested in the OLD Requirements elements in Capella, theses ones: I added a method into the Physical Archi Class to be able to COLLECT the > requirements Packages (pkg): def get_reqPKG3(self): “”" …
Find elsewhere
🌐
Hugging Face
discuss.huggingface.co › beginners
Error with BertTokenizerFast: AttributeError - 'function' object has no attribute 'get' - Beginners - Hugging Face Forums
October 8, 2023 - Hey everyone, I’m stuck while following a HuggingFace tutorial on training a text emotion recognition model. https://www.youtube.com/watch?v=u–UVvH-LIQ Almost there, but when I tried running trainer.train(), it threw an error: You're using a BertTokenizerFast tokenizer.
🌐
Django Forum
forum.djangoproject.com › using django › forms & apis
Don't know how to fix AttributeError: 'function' object has no attribute 'pk' when trying to create new users from registration form - Forms & APIs - Django Forum
September 2, 2023 - Hi, I’m still very new to Python and Django. I am trying to create a working registration page and i get this error when submitting the form. I can’t find this error when looking on stack overflow or the forum and don’t know how to fix this issue. I copied the views and models code here.
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-fix-attributeerror-object-has-no-attribute
How to fix AttributeError: object has no attribute - GeeksforGeeks
August 21, 2024 - The hasattr() function is a built-in Python function that is used to check whether an object has a particular attribute or method. We have included the "hasattr()" function inside the if-else to add logic to our code snippet. This will avoid the AttributeError: object has no attribute error.
🌐
Sololearn
sololearn.com › en › Discuss › 2066141 › attributeerror-function-object-has-no-attribute-get-flask-python
AttributeError: 'function' object has no attribute 'get' - Flask Python | Sololearn: Learn to code for FREE!
November 11, 2019 - @app.route('/posts/<int:post_id>') def posts(post_id): post = posts.get(post_id) return f'Post\n\nTitle: {post["title"]}\nContent\n{post["content"]}' if __name__ == '__main__': app.run(debug=True) ... It looks to me like you are overwriting the posts dictionary when defining the posts function (the error is a giveaway for that) Try renaming the function to something else: def get_post(post_id): .....
🌐
freeCodeCamp
forum.freecodecamp.org › python
function has no attribute - Python - The freeCodeCamp Forum
March 29, 2021 - I was watching the tutorial about developing a discord bot with python. At the 27th minute I started to get an error. I searched a lot but I couldn’t find a solution. Please help me to understand the situation here. My Code is: import discord import os import json import requests client = discord.Client() def get_quote(): response = requests.get ("https://zenquotes.io/api/random") json_data = json.loads(response.text) quote = json_data[0]["q"] + " -" + json_data[0]["a"] ...
🌐
Apache JIRA
issues.apache.org › jira › browse › SPARK-2003
[SPARK-2003] SparkContext(SparkConf) doesn't work in pyspark - ASF Jira
July 2, 2014 - Using SparkConf with SparkContext as described in the Programming Guide does NOT work in Python: conf = SparkConf.setAppName("blah") sc = SparkContext(conf) When I tried I got AttributeError: 'SparkConf' object has no attribute '_get_object_id'
🌐
YouTube
youtube.com › teclado
Python AttributeError — What is it and how do you fix it? - YouTube
AttributeError: '***' object has no attribute '***' What is an AttributeError in Python? What can you do to fix it? When does it happen? All these questions ...
Published   July 27, 2018
Views   44K
🌐
Rollbar
rollbar.com › home › how to fix attributeerror in python
How to Fix AttributeError in Python | Rollbar
October 17, 2022 - This can occur when an attempt is made to reference an attribute on a value that does not support the attribute. The Python AttributeError is raised when an invalid attribute reference is made.
🌐
Itsourcecode
itsourcecode.com › home › attributeerror: ‘function’ object has no attribute
attributeerror: 'function' object has no attribute [SOLVED]
April 17, 2023 - The main cause of the AttributeError: function object has no attribute error in Python is trying to access an attribute that does not exist on a function object.
🌐
HubSpot
community.hubspot.com › t5 › APIs-Integrations › Read-Associations-v4-Python-AttributeError-BasicApi-object-has › m-p › 861054
HubSpot Community - Read Associations v4 Python AttributeError: 'BasicApi' object has no attribute 'get_crm_v4_objects_o - HubSpot Community
October 16, 2023 - The "after" field is not required, so you can remove it so it's not looking for a value of "string." This part should look more like this: BatchInputPublicFetchAssociationsBatchRequest(inputs=[{"id":"12345"}]) Can you try making these changes and seeing if that fixes anything? ... I also see your object types say "0-3" and "0-1" when you likely want "deals" and "contacts" respectively.
🌐
JanBask Training
janbasktraining.com › community › python-python › why-am-i-getting-attributeerror-object-has-no-attribute
Why am I getting AttributeError: Object has no attribute | JanBask Training Community
April 17, 2021 - Run the script with python -tt to verify. ... The "AttributeError: Object has no attribute" error occurs in Python when you try to access or call an attribute or method that does not exist on an object.