본문 바로가기 메뉴 바로가기

Better than alone

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Better than alone

검색하기 폼
  • 분류 전체보기 (112)
    • AI+머신러닝+딥러닝 (5)
      • 강화학습 (David Silver) (2)
      • 언어AI (1)
    • 수학+통계 (1)
    • 알고리즘 (35)
    • 물류 (1)
    • JAVA (11)
    • Python (17)
      • Python 튜토리얼 (2)
      • Python 트러블슈팅 (5)
    • 티스토리 블로깅 (1)
    • 임시 (8)
    • 애자일 (2)
    • Git (4)
    • Troubleshooting (2)
    • 네이버를 만든 기술, 읽으면서 배운다 - 자바 편 (0)
    • DB (5)
      • SQL (3)
    • SW공학 & 프로젝트 관리 (1)
    • 엑셀(EXCEL) (3)
    • 기타 (7)
  • 방명록

Python (17)
seaborn kde : kernel density estimator(커널밀도추정)

import seaborn as sns import matplotlib.pyplot as plt sns.distplot(data, hist=True, kde=True) plt.show() 분포를 확인할 때 보통 히스토그램을 활용하는데, 히스토그램 구간 설정 등에 따라 결과가 다를 수 있음. 그래서, 히스토램과 같은 분포를 스무딩한 KDE를 대안으로 많이 사용한다.

Python 2021. 11. 9. 18:42
[Python] 현재 시간 구하기

datetime 패키지 이용 import datetime datetime.datetime.now() --> 2021-08-21 10:00:05.5677

Python 2021. 8. 17. 18:59
.ipynb 파일을 쉽게 .py로 변환

Anaconda prompt 켜서 .ipynb가 있는 경로로 간 다음에 아래 명령 실행 ipython nbconvert --to script test.ipynb 그러면 test.py가 생성됨 ipython과 nbconvert 없다면 아래 명령으로 install 한 후 사용 pip install ipython pip install nbconvert

Python/Python 튜토리얼 2021. 7. 26. 19:41
anaconda2, anaconda3 (python2, python3) 한 컴퓨터에 같이 설치하기

https://www.programmersought.com/article/83615492528/ Install Anaconda2 and anaconda3 at the same time - Programmer Sought Install Anaconda2 and anaconda3 at the same time Installation address Both URLs can be downloaded. Official websitehttps://www.continuum.io/downloads Tsinghua mirrorhttps://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ Installation process Python2 and pyt www.programmersoug..

Python/Python 트러블슈팅 2021. 7. 20. 22:41
Python 설치 / Anaconda 설치

1. anaconda.com 접속 - products 메뉴 - individual edition 메뉴 - 다운로드 클릭 2. 본인의 운영체제와 32/64 비트, python 버전 클릭 (python 버전은 최신 버전 설치를 권장) -> 설치파일 다운로드될 것 3. 다운로드된 설치파일 실행 4. Next 누르다가, 'Select Installation Type'을 Just Me 혹은 All Users 중에 선택하라고 나올텐데 'Just Me' 선택해야 함 * All Users 선택하면, 패키치 설치/업그레이드할 때 cmd 창을 관리자 권한으로 열어서 실행해야 함

Python/Python 튜토리얼 2020. 12. 8. 18:10
Python pandas 한 엑셀 시트에 여러 dataframe 넣기 How to Write Multiple Data Frames in an Excel Sheet

import pandas as pd data1 = """ class precision recall

Python 2020. 1. 14. 18:23
python 파일 존재 여부 확인 (check file exists)

import os.path os.path.isfile(filename)

Python 2020. 1. 13. 20:24
python pandas dataframe 수정 (at()사용, ix()은 비추)

df = pd.DataFrame(data=np.array([[1, 2, 3], [1, 5, 6], [7, 8, 9]]), columns=['A', 'B', 'C']) df.ix[0]['A'] = 0 # index가 0이고, column이 A인 값을 0으로 수정 근데 .ix()에 문제가 있다. 곧 사라진다고 한다. .loc이나 .iloc 등을 사용할 걸 권장한다 메세지 : .ix is deprecated. Please use .loc for label based indexing or .iloc for positional indexing 같은 기능을 하는 at을 사용할 땐 이런 메세지가 안 뜬다. df.ix[0,'A'] = 0

Python 2020. 1. 13. 19:24
python pandas dataframe multi index (multiple index) 설정 및 다루기

- 만들어진 dataframe의 여러 column을 index로 설정하는 경우 df.set_index(['year', 'month']) # 'year', 'month'는 각각 column 명 - 엑셀 쓸 때 중복되는 index 혹은 column의 셀 합쳐지지 않도록 하는 방법 : merge_cell=False df.to_excel('example.xlsx',merge_cells=False)

Python 2020. 1. 13. 19:14
Jupyter notebook / Anaconda 열리는 브라우저 변경 (예. 크롬으로 열기)

1. anaconda prompt 켜서 jupyter notebook --generate-config 입력 - config 파일이 생성된다. 원래 있었다면 덮어쓰면된다. config 파일 있는 경로가 출력될 것이다. 2. config 파일이 있는 위치로 가서 config 파일(jupyter_notebook_config.py)을 수정한다. #c.NotebookApp.notebook_dirc.NotebookApp.browser = '' 부분의 주석을 없애고 크롬 경로+%s(예. ''C:/ProgramData/Microsoft/Windows/Start Menu/Programs/chrome.exe %s'')를 넣어준다. 끝.

Python 2020. 1. 10. 18:26
이전 1 2 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 동시설치
  • backtracking
  • 여러 파일 하나로 합치기
  • anaconda2
  • nbconvert
  • 스도쿠
  • minor GC
  • dynamic programming
  • ICPC
  • DP
  • anaconda설치
  • unreachable object
  • 인쇄행고정
  • Divide&Conquer
  • Excel
  • Bruteforce
  • graph traversals
  • Markdown Note
  • Python
  • 엑셀
  • 이클립스메모리분석툴
  • 인쇄열고정
  • 메모리제한
  • Open ID Connect
  • ipynb
  • SecurityContextRepository
  • Note App
  • type명령어
  • SecurityContextPersistenceFilter
  • greedy
more
«   2025/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바