1
+ {
2
+ "nbformat" : 4 ,
3
+ "nbformat_minor" : 2 ,
4
+ "metadata" : {
5
+ "language_info" : {
6
+ "name" : " python" ,
7
+ "codemirror_mode" : {
8
+ "name" : " ipython" ,
9
+ "version" : 3
10
+ },
11
+ "version" : " 3.7.5-final"
12
+ },
13
+ "orig_nbformat" : 2 ,
14
+ "file_extension" : " .py" ,
15
+ "mimetype" : " text/x-python" ,
16
+ "name" : " python" ,
17
+ "npconvert_exporter" : " python" ,
18
+ "pygments_lexer" : " ipython3" ,
19
+ "version" : 3 ,
20
+ "kernelspec" : {
21
+ "name" : " python37564bit42731fe29a1c4072b88558cb14c14b00" ,
22
+ "display_name" : " Python 3.7.5 64-bit"
23
+ }
24
+ },
25
+ "cells" : [
26
+ {
27
+ "cell_type" : " markdown" ,
28
+ "metadata" : {},
29
+ "source" : [
30
+ " # getting started with pandas"
31
+ ]
32
+ },
33
+ {
34
+ "cell_type" : " code" ,
35
+ "execution_count" : 1 ,
36
+ "metadata" : {},
37
+ "outputs" : [],
38
+ "source" : [
39
+ " import pandas as pd"
40
+ ]
41
+ },
42
+ {
43
+ "cell_type" : " code" ,
44
+ "execution_count" : 2 ,
45
+ "metadata" : {},
46
+ "outputs" : [],
47
+ "source" : [
48
+ " from pandas import Series, DataFrame"
49
+ ]
50
+ },
51
+ {
52
+ "cell_type" : " code" ,
53
+ "execution_count" : 5 ,
54
+ "metadata" : {},
55
+ "outputs" : [],
56
+ "source" : [
57
+ " import numpy as np\n " ,
58
+ " np.random.seed(12345)\n " ,
59
+ " import matplotlib.pyplot as plt\n " ,
60
+ " plt.rc('figure', figsize=(10, 6))\n " ,
61
+ " PREVIOUS_MAX_ROWS = pd.options.display.max_rows\n " ,
62
+ " pd.options.display.max_rows = 20\n " ,
63
+ " np.set_printoptions(precision=4, suppress=True)"
64
+ ]
65
+ },
66
+ {
67
+ "cell_type" : " markdown" ,
68
+ "metadata" : {},
69
+ "source" : [
70
+ " ## intro to pandas data structure"
71
+ ]
72
+ },
73
+ {
74
+ "cell_type" : " markdown" ,
75
+ "metadata" : {},
76
+ "source" : [
77
+ " ## Series"
78
+ ]
79
+ },
80
+ {
81
+ "cell_type" : " code" ,
82
+ "execution_count" : 6 ,
83
+ "metadata" : {},
84
+ "outputs" : [
85
+ {
86
+ "output_type" : " execute_result" ,
87
+ "data" : {
88
+ "text/plain" : " 0 4\n 1 8\n 2 -5\n 3 2\n dtype: int64"
89
+ },
90
+ "metadata" : {},
91
+ "execution_count" : 6
92
+ }
93
+ ],
94
+ "source" : [
95
+ " obj = pd.Series([4, 8, -5, 2])\n " ,
96
+ " obj"
97
+ ]
98
+ },
99
+ {
100
+ "cell_type" : " code" ,
101
+ "execution_count" : null ,
102
+ "metadata" : {},
103
+ "outputs" : [],
104
+ "source" : []
105
+ }
106
+ ]
107
+ }
0 commit comments