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

페르소나

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

페르소나

검색하기 폼
  • 분류 전체보기 (189)
    • OS (20)
      • macOS (9)
      • ubuntu (4)
      • mintOS (4)
      • Windows (3)
    • GitHub (5)
    • python (87)
      • Lecture (31)
      • Data Science (9)
      • Numpy, Pandas (6)
      • GUI (1)
      • Drawing (3)
      • Django (11)
      • django_ERP1 (11)
      • django_ERP2 (15)
    • Arduino (10)
    • Raspberry Pi (17)
      • ubuntu LTS server (3)
      • Raspberry Pi OS (8)
      • Web-Server (4)
      • Webapp_django (2)
    • R (28)
    • DIARY (21)
  • 방명록

python/Data Science (9)
[Book_Fluent Python] 2장 시퀀스 : 지능형 리스트, 제너레이터

1. 지능형 리스트 : 새로운 리스트만 생성, 짧은 코딩 for loop 효율적 사용 방법 폴더 내 파일리스트 불러오기 선택된 파일 load 하기 - 좋은 예 flist = [flist for flist in flist_base if flist.startswith(head_name)] fpath_base = os.path.join('./data/','sub_dir') flist_base = os.listdir(fpath_base) flist = [flist for flist in flist_base if flist.startswith(head_name)] for i in range(0,len(flist)): vname = flist[i] fdata = np.loadtxt(os.path.join(fpath..

python/Data Science 2020. 2. 26. 14:14
이전 1 2 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • SSH
  • server
  • ERP
  • DS18B20
  • COVID-19
  • pyserial
  • Regression
  • vscode
  • Raspberry Pi
  • MacOS
  • Templates
  • template
  • r
  • sublime text
  • Model
  • git
  • arduino
  • 확진
  • 라즈베리파이
  • 자가격리
  • Pandas
  • Python
  • github
  • raspberrypi
  • DAQ
  • Django
  • 코로나
  • 코로나19
  • CSV
  • analysis
more
«   2025/08   »
일 월 화 수 목 금 토
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

티스토리툴바