본문 바로가기

분류 전체보기273

10.10 머신러닝 학습 시작. 데이터분석, 데이터시각화 공부하고 실무관련된 내용하다가.. 뭔가 동기부여가 없으니까 쭉 공부하기가 어려워서 새로운걸 배워야겠다는 생각이 들었다. 2022. 10. 10.
궁금) Matplotlib 다중막대그래프랑 꺾은선 동시에 그리는법 단일막대그래프와 꺾은선그래프를 동시에 그리는법, 다중막대그래프를 그리는 법은 알겠는데 다중막대그래프랑 꺾은선을 동시에 그리는 법을 모르겠다. 영어로 쳐봐도 잘 안뜨고 설명이 너무 어렵다 단일막대그래프와 꺾은선 그래프 그리는법은 ax..~~ 방식으로 공부했고 다중막대그래프는 그냥 plt. 방식으로 공부해서 응용이 안됨 2022. 10. 9.
Matplotlib : 다중막대그래프 엑셀은 그냥 해주던데 matplotlib은 박스 각각 위치까지 지정해줘야 돼서 손이많이간다.seaborn으로도 안된다 https://jimmy-ai.tistory.com/40 [Matplotlib] 파이썬 다중 막대 그래프 그리기 예제 이번 글에서는 파이썬에서 다중 막대 그래프를 겹치지 않게 그리는 예제 코드를 살펴보도록 하겠습니다. 파이썬 plt 다중 막대 그래프 예제 코드 먼저, 다음과 같은 간단한 연도별 상점별 판매 jimmy-ai.tistory.com 2022. 10. 6.
matplotlib : 막대그래프 두께width 조절 https://www.python-graph-gallery.com/5-control-width-and-space-in-barplots Control width and space in barplots using matplotlib | The Python Graph Gallery Controlling the width of bars and space between bars in a barplot using matplotlib www.python-graph-gallery.com # library import matplotlib.pyplot as plt # create dataset height = [3, 12, 5, 18, 45] bars = ('A', 'B', 'C', 'D', 'E') # Choose th.. 2022. 10. 4.
subplot 예시 사이트 모음 파이썬 데이터분석의 가장 큰 강점이 subplot이라고 생각한다. 한 눈에 여러 그래프를 동시에 보여줘서 시각적인 효과가 좋다. 그러나 좋은만큼 코드짜기도 너무 어려워보인다. 며칠전에 강남 교보문고가서 파이썬 책은 다봤는데 subplot을 자세히 설명해주는 책은 정말 하나도 없어서 아쉬웠다..matplotlib의 꽃이라고 생각한다. 조만간 실무에서 활용하면서 부딪쳐볼것 같아서 미리 정리. https://codetorial.net/matplotlib/subplot.html Matplotlib 여러 개의 그래프 그리기 - Codetorial 예제2 import numpy as np import matplotlib.pyplot as plt x1 = np.linspace(0.0, 5.0) x2 = np.lins.. 2022. 10. 4.
소숫점 표시 : 전체 변경, 특정 열만 변경 (apply,lambda) pd.set_option('display.float_format', '{:,.1f}'.format) → 주피터노트북 전체 cell에서 float은 다 소숫점 첫째자리만 나옴. df['column'] = df['column'].apply(lambda x: "{:,.2f}".format(float(x))) → 특정 df의 특정 column만 소숫점 둘째자리로 나옴. 2022. 10. 4.
자료형 변환 : 전체, 특정 column / astype, applymap, apply 해당 링크 타고가면 자료형변환에 관해 댓글에 많은 글들이 있다. https://stackoverflow.com/questions/21291259/convert-floats-to-ints-in-pandas Convert floats to ints in Pandas? I've been working with data imported from a CSV. Pandas changed some columns to float, so now the numbers in these columns get displayed as floating points! However, I need them to be displayed as stackoverflow.com https://www.geeksforgeeks.org/how-t.. 2022. 10. 3.
결측치 채우기 https://ko.code-paper.com/python/examples-how-to-replace-nan-values-with-0-in-pandas 팬더에서 nan 값을 0 으로 바꾸는 방법 - Python 샘플 코드 이 카테고리에서 인기 카테고리에 예제가 포함 된 인기있는 페이지 ko.code-paper.com 번역기 돌려서 글이 좀 이상한데 내용은 좋다 2022. 10. 3.