빅데이터 김교수의 "AI노마드연구소" AI로 열어가는 노마드 세상!

빅데이터 김교수의 "AI노마드연구소" AI로 열어가는 노마드 세상입니다. AI 코딩작성, SNS 분석, AI업무자동화 컨설팅 0507-1419-0222

자세히보기

분류 전체보기 212

colab matplotlib함수 수행시 한글 깨짐 문제 해결하기

## 한글 깨짐 문제 해결 # Google Colab matplotlib 한글 폰트 오류 문제 해결 # colab과 google Drive 연동을 위한 인증 및 네트워크 디렉토리 마운트 from google.colab import auth auth.authenticate_user() from google.colab import drive drive.mount('/content/drive') # 1. 나눔 폰트 다운 !sudo apt-get install -y fonts-nanum !sudo fc-cache -fv !rm ~/.cache/matplotlib -rf # 2. 런타임 다시 시작 # 3. matplotlib의 폰트를 Nanum 폰트로 지정 import matplotlib.pyplot as plt..

카테고리 없음 2022.05.19

Numpy 예제1_출생아수 평균구하기(문제)

import numpy as np 데이터 불러오기 (np.loadtxt) python 파일 경로에 data폴더 만든 후 다음의 births.txt 파일 넣어놓기 births.txt 0.00MB birth = np.loadtxt( 'data/births.txt', delimiter=',', dtype=np.int64) # data폴더 안의 births.txt파일 ','로 구분하여 load하기 birth.shape # 132행 3열 [OUT] : (132, 3) birth # 연도, 남아수, 여아수로 구성되어있음 [OUT] : array([[ 1880, 90993, 110491], [ 1881, 91954, 100745], [ 1882, 107850, 113688], [ 1883, 112321, 104629..

Colab 환경이해

1. 나의 구글 드라이브 확인하기 https://one.google.com/storage?utm_source=g1&utm_medium=web&utm_campaign=about_view_storage 로그인 - Google 계정 하나의 계정으로 모든 Google 서비스를 Google 계정으로 로그인 accounts.google.com 2. Colab 들어가기 https://colab.research.google.com/ Google Colaboratory colab.research.google.com 바로가기키는 다음과 같이 셋팅해주세요~ clt+mc : 섹션 제목 셀 추가 clt+mv : 텍스트 셀 추가 clt + mb : 아래에 코드 셀 삽입

반응형