본문 바로가기

Python4

Python 코딩 가이드라인 프로젝트에 참여했다면 프로젝트에서 정의된 코딩 가이드라인을 따름 코딩 가이드라인이 없는경우 PEP 8 참고. 단, 똑같이 따라할 필요는 없을듯. 일관된 코딩스타일을 구축하는게 중요함. PEP 8 is the de facto code style guide for Python. A high quality, easy-to-read version of PEP 8 is also available at pep8.org. >import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than co.. 2020. 2. 6.
데이터 분석을 위한 panda-profiling 데이터 분석을 위해서는 통계적 지식과 프로그래밍 기술이 필요하다. 하지만 통계적 지식이 적고 프로그래밍 스킬이 낮다면 다른 사람이 만들어놓은 코드를 이용할 수 밖에 없다. 그동안 많은 library가 나왔지만 기능에 제한적이였다면 panda-profiling을 이런것들을 다 통합한 library라 하겠다. 대표적인 기능(원문 그대로 옮긴다) Type inference: detect thetypesof columns in a dataframe. Essentials: type, unique values, missing values Quantile statisticslike minimum value, Q1, median, Q3, maximum, range, interquartile range Descripti.. 2020. 1. 15.
How to install PyTables on Ubuntu $ sudo apt-get install libhdf5-serial-dev $ sudo aptitude install python-tables To test the installation, run python or ipython and: >>> import tables >>> tables.test() 2012. 3. 7.
python에서 숫자에 콤마를 넣어서 출력하기 >>> import locale >>> locale.setlocale(locale.LC_ALL, 'en_US') 'en_US' >>> locale.format("%d", 1255000, grouping=True) '1,255,000' 2011. 3. 23.