본문 바로가기

파이썬(Python)/판다스(Pandas)

판다스 데이터프레임: 2차원으로만 표현되며, 3차원은 표현 못한다.

3차원을 표현할 수는 있으나, 그것이 직육면체 느낌이나 xyz 좌표평면 느낌으로 보여줄 수는 없다.

아래 사이트의 예시는 3차원을 표현했다지만, 실제로는 2차원의 한 축에 축2개를 다 집어넣은 구조이다.

 

내가 말하는 방식은 이게 아니다.

엑셀의 3d plot 과 판다스의 2d에 우겨넣은 3d plot을 비교해보면 무슨 뜻인지 알 수 있다.

https://www.educba.com/3d-plot-in-excel/


https://www.statology.org/pandas-3d-dataframe/

 

그 밖에, 3차원 그림으로 표현이 안된다는 질의응답.

https://scicomp.stackexchange.com/questions/37463/generate-3d-matrix-with-pandas-based-on-comparing-two-dataframes-python

 

Generate 3D "matrix" with Pandas, based on comparing two dataframes [Python]

Good morning everyone. I am working with Python and Pandas. I have two DataFrames, of the following type: df_C = pd.DataFrame(data=[[-3,-1,-1], [5,3,3], [3,3,1], [-1,-1,-3], [-3,-1,-1], [2,3,1], [1...

scicomp.stackexchange.com