Coding/Python
-
Introduction to Pandas¶Pandas provide two convenient data structures for storing and manipulating data--Series and DataFrame. A Series is similar to a one-dimensional array whereas a DataFrame is more similar to representing a matrix or a spreadsheet table.In [1]: import numpy as npfrom pandas import Seriesfrom pandas import DataFrameimport pandas as pd%matplotlib inline Series¶A Series ..
Pandas TutorialIntroduction to Pandas¶Pandas provide two convenient data structures for storing and manipulating data--Series and DataFrame. A Series is similar to a one-dimensional array whereas a DataFrame is more similar to representing a matrix or a spreadsheet table.In [1]: import numpy as npfrom pandas import Seriesfrom pandas import DataFrameimport pandas as pd%matplotlib inline Series¶A Series ..
2024.11.03 -
Introduction to Numpy¶Numpy, which stands for numerical Python, is a Python library package to support numerical computations. The basic data structure in numpy is a multi-dimensional array object called ndarray. Numpy provides a suite of functions that can efficiently manipulate elements of the ndarray.To see the reference manualHelp → Numpy Referenceor https://docs.scipy.org/doc/num..
Numpy TutorialIntroduction to Numpy¶Numpy, which stands for numerical Python, is a Python library package to support numerical computations. The basic data structure in numpy is a multi-dimensional array object called ndarray. Numpy provides a suite of functions that can efficiently manipulate elements of the ndarray.To see the reference manualHelp → Numpy Referenceor https://docs.scipy.org/doc/num..
2024.11.03 -
Visualizing Data¶Two primary uses for data visualization:¶To explore dataTo communicate dataData visualization is a rich field of study that deserves its own book.In [1]: import numpy as npfrom collections import Counterimport randomimport matplotlib.pyplot as plt%matplotlib inline matplotlib¶Widely usedGood for simple bar charts, line charts, and scatterplotsmatplotlib.pyplot moduleIn [..
Visualizing DataVisualizing Data¶Two primary uses for data visualization:¶To explore dataTo communicate dataData visualization is a rich field of study that deserves its own book.In [1]: import numpy as npfrom collections import Counterimport randomimport matplotlib.pyplot as plt%matplotlib inline matplotlib¶Widely usedGood for simple bar charts, line charts, and scatterplotsmatplotlib.pyplot moduleIn [..
2024.11.03 -
A Crash Cource in Python¶The Basics¶Whitespace Formatting¶Many languages use curly braces to delimit blocks of code. Python uses indentation:In [1]: for i in [1, 2, 3, 4, 5]: print(i) for j in [1, 2, 3, 4, 5]: print(j) print(i + j) print(i)print("done looping") 1122334455612132435465723142536475834152637485945162738495105done loopingWhitespace is ignored in..
Crash Cource in PythonA Crash Cource in Python¶The Basics¶Whitespace Formatting¶Many languages use curly braces to delimit blocks of code. Python uses indentation:In [1]: for i in [1, 2, 3, 4, 5]: print(i) for j in [1, 2, 3, 4, 5]: print(j) print(i + j) print(i)print("done looping") 1122334455612132435465723142536475834152637485945162738495105done loopingWhitespace is ignored in..
2024.11.03 -
1. 개요IP 카메라가 없는 상태에서, 웹캠만 보유하고 있을 때, 이를 외부에서 접근 가능한 스트리밍 서버로 송출하고 싶은 경우에 이용 2. 코드 GitHub - god233012yamil/Building-a-FastAPI-Web-Server-to-Stream-Video-from-Camera: This Python script implements a FastAPI-basedThis Python script implements a FastAPI-based web server for streaming video from various camera sources. - GitHub - god233012yamil/Building-a-FastAPI-Web-Server-to-Stream-Video-from-Camer..
FastAPI를 이용한 웹캠 스트리밍 서버1. 개요IP 카메라가 없는 상태에서, 웹캠만 보유하고 있을 때, 이를 외부에서 접근 가능한 스트리밍 서버로 송출하고 싶은 경우에 이용 2. 코드 GitHub - god233012yamil/Building-a-FastAPI-Web-Server-to-Stream-Video-from-Camera: This Python script implements a FastAPI-basedThis Python script implements a FastAPI-based web server for streaming video from various camera sources. - GitHub - god233012yamil/Building-a-FastAPI-Web-Server-to-Stream-Video-from-Camer..
2024.10.29 -
Python with numpy¶ Variables and Literals¶= means assign.a=5 means assign the numeric literal 5 to the variable a.a="Five" means assign the string literal "Five" to the variable a. In [1]:a = 5print("a =", a)a = "Five"print("a =", a) a = 5a = Five Operators¶ In [2]:x = 14y = 4# Add two operandsprint('x + y =', x+y) # Output: x + y = 18# Subtract right operand from the leftprint('x - y =', x-y..
Numpy in PythonPython with numpy¶ Variables and Literals¶= means assign.a=5 means assign the numeric literal 5 to the variable a.a="Five" means assign the string literal "Five" to the variable a. In [1]:a = 5print("a =", a)a = "Five"print("a =", a) a = 5a = Five Operators¶ In [2]:x = 14y = 4# Add two operandsprint('x + y =', x+y) # Output: x + y = 18# Subtract right operand from the leftprint('x - y =', x-y..
2024.09.10 -
CS231n Python Tutorial With Google Colab¶ This tutorial was originally written by Justin Johnson for cs231n. It was adapted as a Jupyter notebook for cs228 by Volodymyr Kuleshov and Isaac Caswell.This version has been adapted for Colab by Kevin Zakka for the Spring 2020 edition of cs231n. It runs Python3 by default. Introduction¶ Python is a great general-purpose programming language on its o..
CS231n Python TutorialCS231n Python Tutorial With Google Colab¶ This tutorial was originally written by Justin Johnson for cs231n. It was adapted as a Jupyter notebook for cs228 by Volodymyr Kuleshov and Isaac Caswell.This version has been adapted for Colab by Kevin Zakka for the Spring 2020 edition of cs231n. It runs Python3 by default. Introduction¶ Python is a great general-purpose programming language on its o..
2024.09.10 -
1. 프로젝트 구성./Project ㄴ a ㄴ b.py ㄴ c ㄴ d.py 2. import 방법프로젝트 구성이 위와 같을 때, b.py 파일에서 d.py 파일을 import 하려면 아래의 코드 3줄을 c.py 파일에 추가하면 됨import syssys.path.insert(0, "./") # parent folder path appending# 예시sys.path.insert(0,"/Python_example_file") # use absolute path
다른 폴더 파일 import1. 프로젝트 구성./Project ㄴ a ㄴ b.py ㄴ c ㄴ d.py 2. import 방법프로젝트 구성이 위와 같을 때, b.py 파일에서 d.py 파일을 import 하려면 아래의 코드 3줄을 c.py 파일에 추가하면 됨import syssys.path.insert(0, "./") # parent folder path appending# 예시sys.path.insert(0,"/Python_example_file") # use absolute path
2024.04.09 -
1. 프로젝트 구성./Project ㄴ a ㄴ b.py ㄴ c.py 2. import 방법프로젝트 구성이 위와 같을 때, b.py 파일에서 c.py 파일을 import 하려면 아래의 코드 3줄을 c.py 파일에 추가하면 됨import osimport syssys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
상위 폴더 파일 import1. 프로젝트 구성./Project ㄴ a ㄴ b.py ㄴ c.py 2. import 방법프로젝트 구성이 위와 같을 때, b.py 파일에서 c.py 파일을 import 하려면 아래의 코드 3줄을 c.py 파일에 추가하면 됨import osimport syssys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
2023.03.06