pandas.DataFrame() Initializes NULL Error: DataFrame [How to Solve]

An error occurred while initializing an empty dataframe

Traceback (most recent call last):
    result_format = pd.DataFrame(index=index, columns=columns)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 435, in __init__
    mgr = init_dict(data, index, columns, dtype=dtype)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 239, in init_dict
    val = construct_1d_arraylike_from_scalar(np.nan, len(index), nan_dtype)
  File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\dtypes\cast.py", line 1440, in construct_1d_arraylike_from_scalar
    dtype = dtype.dtype
AttributeError: type object 'object' has no attribute 'dtype'

Solution:
result_format = pd.DataFrame(index=index, columns=columns, dtype=object)

Read More: