[Python_Error] ValueError: The dimension of bins must be equal to the dimension of the sample x.


[Python_Error] ValueError: The dimension of bins must be equal to the dimension of the  sample x.

본 포스팅은 업무 중 발생했던 오류들을 예시를 통해 어떻게 해결을 하는지 작성했다. ValueError: The dimension of bins must be equal to the dimension of the sample x. 위 에러메시지는 "np.histogram2d()" 모듈을 사용할 때 발생한 오류이다. import numpy as np # Generate some random data data_1 = np.random.randn(100, 2) # Generate some random data data_2 = np.random.randn(150, 2) # Try to create a 2D histogram with one-dimensional bins hist, _, _ = np.histogr..


원문링크 : [Python_Error] ValueError: The dimension of bins must be equal to the dimension of the sample x.