![](https://img-blog.csdnimg.cn/202012171705406.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python-cheat-sheet
Cheat sheet of python from DataCamp
radar_sun
kite in the hurricane
展开
-
cheat-sheet-seaborn
The Python visualization library Seaborn is based on matplotlib and provides a high-level interface for drawing attractive statistical graphics. Make use of the following aliases to import the libraries: >>> import matplotlib.pyplot as plt >>原创 2020-12-18 11:28:51 · 201 阅读 · 0 评论 -
cheat-sheet-numpy-basics
The NumPy library is the core library for scientific computing in Python. It provides a high performance multidimensional array object, and tools for working with these arrays. 1. Creating Arrays >>> a = np.array([1,2,3]) >>> b = np.arra原创 2020-12-17 16:40:04 · 152 阅读 · 0 评论 -
cheat-sheet-pandas
1. Reshaping Data 1.1 Pivot # Spread rows into columns >>> df3= df2.pivot(index='Date', columns='Type', values='Value') 1.2 Pivot Tables # Spread rows into columns df4 = pd.pivot_table(df2,原创 2020-12-17 11:30:55 · 124 阅读 · 0 评论 -
cheat-sheet-python-basics
Variables and Data Types Variable Assignment >>> x = 5 >>> x 5 Calculations with Variables Sum of two variables >>> x + 2 7 Subtraction of two variables >>> x - 2 3 Types and Type Conversion Lists Selecting List Eleme原创 2020-12-17 09:44:05 · 156 阅读 · 0 评论