I got this error:
AttributeError: module ‘numpy’ has no attribute ‘object’.
np.object
was a deprecated alias for the builtin object
. To avoid this error in existing code, use object
by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20
I ran these codes (then above error occurred):
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as stats
import pandas as pd
What am I suppose to do? (I am using Spyder with Python 3.9.18)