python class method invocation missing 1 required positional argument
I created class method to easen file reading. But the end result gives me error of file_read=Read_file.file_reading_through_class(‘./ConfigurationFile/configFile.csv’) TypeError: Read_file.file_reading_through_class() missing 1 required positional argument: ‘fileName’ the code is below; import pandas as pd import sys,os, time,re class Read_file(): def file_reading_through_class(self,fileName): if getattr(sys, ‘frozen’, False) and hasattr(sys, ‘_MEIPASS’): path_actual = os.getcwd() path_main_folder = path_actual[:-4] path_result =… Read More python class method invocation missing 1 required positional argument