인공지능/PYTHON

Numpy, Pandas, Matplotlib

bibibig_data 2021. 6. 28. 13:33

예제 1 ) numpy를 이용해서 list 값을 2배 곱하기

list_ = [[1,2,3],
        [3,4,5]]

list_ * 2  # x 

for row in list_:
  for number in row:
    print(number * 2)

[number * 2 for row in list_subject
              for number in row]    

import numpy as np

arr = np.array([[1,2,3],
                [3,4,5]])

type(arr)
arr * 2

 


 

[002-5] NumPy_서브노트.txt
0.00MB
[002-6] pandas_서브노트.txt
0.04MB
[002-7] matplotlib_서브노트.txt
0.02MB
[002-8] seaborn_서브노트.txt
0.02MB

 


판다스 

 

Comparison with SQL — pandas 1.2.5 documentation (pydata.org)

 

Comparison with SQL — pandas 1.2.5 documentation

Since many potential pandas users have some familiarity with SQL, this page is meant to provide some examples of how various SQL operations would be performed using pandas. If you’re new to pandas, you might want to first read through 10 Minutes to panda

pandas.pydata.org

 

Introducing Pandas Objects | Python Data Science Handbook (jakevdp.github.io)

 

Introducing Pandas Objects | Python Data Science Handbook

At the very basic level, Pandas objects can be thought of as enhanced versions of NumPy structured arrays in which the rows and columns are identified with labels rather than simple integer indices. As we will see during the course of this chapter, Pandas

jakevdp.github.io

 

 

--------------------------------------------------------------------------------------------------------------------------

 

 EDA

 

Python으로 하는 탐색적 자료 분석 (Exploratory Data Analysis) :: Deep Play (tistory.com)

 

Python으로 하는 탐색적 자료 분석 (Exploratory Data Analysis)

Python으로 하는 탐색적 자료 분석 (Exploratory Data Analysis) Python을 통해 탐색적 자료분석을 할 때, 무엇을 해야하고, 순서는 어떻게 해야하는지 막막한 경우가 많은데요. 탐색적 자료분석의 기본은

3months.tistory.com

 


 

Matplotlib

 

https://matplotlib.org/stable/tutorials/introductory/usage.html

 

Usage Guide — Matplotlib 3.4.2 documentation

Note Click here to download the full example code Usage Guide This tutorial covers some basic usage patterns and best-practices to help you get started with Matplotlib. import matplotlib.pyplot as plt import numpy as np A simple example Matplotlib graphs y

matplotlib.org