Top "Nameerror" questions

The Ruby or Python `NameError` exception.

Pandas Profiling - NameError: name 'pandas_profiling' is not defined

Experts, Here is my block of code and I am getting the below error. import pandas import os trainFile = r'C:\…

python pandas nameerror pandas-profiling
RoR: NameError: Uninitialized constant (Service)

this is my first question at SO :) I'm quite new to RoR and I try to understand the PINGOWebApp, which …

ruby-on-rails service controller nameerror
NameError while using append on a list [Python]

I'm trying to make a simple hangman game in Python 2.7.10. However when I try to append "_" for every letter in …

python python-2.7 nameerror
Python NameError (def) is not defined

I'm having trouble with the following Python code: class Methods: def method1(n): #method1 code def method2(N): #some method2 …

python function nameerror
NameError: uninitialized constant Object::User

I searched the other posts that had this issue and could not find one that fixed my particular issue. My …

ruby-on-rails constants irb nameerror
Python NameError: name 'file_name' is not defined

I'm attempting to write a simple script that will take a filename from the command line and convert that file …

python argparse nameerror
NameError: uninitialized constant -- activerecord

I have two classes, Number and Freebie: class Number < ActiveRecord::Base belongs_to :account has_many :freebies end class …

ruby-on-rails activerecord nameerror uninitialized-constant
Python3 NameError: name 'method' is not defined for defined @staticmethod

I am trying to write a simple recursive function in python3. As I am learning OO Java, I also want …

python python-3.x oop recursion nameerror