주피터 노트북 사용법
주피터 노트북이란 ? :
The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more.
목차 및 글쓸때 : 마크 다운 쉘 으로 변경하여
# 1.
##2.
###3. 순으로 작아진다
알트 엔터를 누르면 코드 쉘로 변경된다.
쉬프트 엔터를 누르면 코드 실행
컨트롤 쉬프트 - 를 누르먼 밑의 셀이 분리 된다
이미지 :
from IPython.display import Image
from IPython.display import Image
비디오 :
from IPython.display import YouTubeVideo
YouTubeVideo('vJwrhhL5f8Y')
from IPython.display import YouTubeVideo
YouTubeVideo('vJwrhhL5f8Y')
테이블 :
import pandas as pd
url="https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv"
pd.read_csv(url, nrows=10)
import pandas as pd
url="https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv"
pd.read_csv(url, nrows=10)
차트 :
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()