About 95,000 results
Open links in new tab
  1. TypeError: 'NoneType' object is not iterable - Stack Overflow

    Nov 12, 2023 · (a) Confuses NoneType and None (b) thinks that NameError: name 'NoneType' is not defined and TypeError: cannot concatenate 'str' and 'NoneType' objects are the same as TypeError: 'NoneType' object is not iterable (c) comparison between Python and java is "a bunch of unrelated nonsense" –

  2. TypeError: "NoneType" object is not iterable - Stack Overflow

    Mar 29, 2020 · Python: Getting `TypeError: "NoneType" object is not iterable` with no None elements of list Hot Network Questions Perl executes the code inside an if-block regardless of the condition itself

  3. python - NoneType object is not iterable - Stack Overflow

    TypeError: 'NoneType' object is not iterable using python. 1. TypeError: NoneType object is not iterable. 1.

  4. python - TypeError: argument of type 'NoneType' is not iterable

    I am making a Hangman game in Python. In the game, one python file has a function that selects a random string from an array and stores it in a variable. That variable is then passed to a function in

  5. Pandas - TypeError: 'NoneType' object is not iterable

    Jul 14, 2020 · TypeError: 'NoneType' object is not iterable Is telling you that it's not an iterator like Strings, Lists, dictionaries, or tuples, so you can't use indexing for them or in this case for loops. Share

  6. Python Pandas read_sql_query “'NoneType' object is not iterable” …

    Jan 16, 2018 · I can not post the exact query but this is how query looks like. SET NOCOUNT ON; SELECT SourceID, PeriodEndDate = MAX(PeriodEndDate) INTO #SourceDate FROM table1 WHERE PERIODENDDATE <= 20171229 GROUP BY SourceID SELECT RS.*, R.TypeCode INTO #final FROM table2 RS INNER JOIN #SourceDate SD ON SD.id = RS.id INNER JOIN table3 R ON R.id = RS.id ...

  7. python - "TypeError: 'NoneType' object is not iterable" from …

    Sep 10, 2019 · columns = [col_desc[0] for col_desc in cursor.description] TypeError: 'NoneType' object is not iterable import pyodbc import pandas as pd conn = pyodbc.connect("DRIVER={SQL Server};" "SERVER=server_name;" "DATABASE=master;" "Trusted_Connection=yes;") cursor = conn.cursor() script=""" If object_id ('tempdb..#Temp1')is not null drop table #Temp1 ...

  8. Python - "'NoneType' object is not iterable" error - Stack Overflow

    My instructions in a codecademy project are to Define a function called purify that takes in a list of numbers, removes all odd numbers in the list, and returns the result. For example, purify([...

  9. Can't sort my list because it is NoneType? Simple Python

    Dec 2, 2012 · intprices.sort() is sorting in place and returns None, while sorted( intprices ) creates a brand new sorted list from your list and returns it.

  10. python 'NoneType' object is not iterable - Stack Overflow

    Apr 4, 2013 · This program is a user interface for a golf round. The Player and League classes should not be changed. The user interface allows the user to enter 9 hole scores for each of the players in a text...

Refresh