diff --git a/doc/pub/How2ReadData/html/._How2ReadData-bs000.html b/doc/pub/How2ReadData/html/._How2ReadData-bs000.html index 5719cc4c0..eb14f46f6 100644 --- a/doc/pub/How2ReadData/html/._How2ReadData-bs000.html +++ b/doc/pub/How2ReadData/html/._How2ReadData-bs000.html @@ -40,7 +40,8 @@ Automatically generated HTML file from DocOnce source
@@ -63,6 +64,7 @@ end of tocinfo --> Contents @@ -112,6 +114,7 @@ end of tocinfo --> diff --git a/doc/pub/How2ReadData/html/._How2ReadData-bs001.html b/doc/pub/How2ReadData/html/._How2ReadData-bs001.html index 93528e2d8..774e3f2ac 100644 --- a/doc/pub/How2ReadData/html/._How2ReadData-bs001.html +++ b/doc/pub/How2ReadData/html/._How2ReadData-bs001.html @@ -40,7 +40,8 @@ Automatically generated HTML file from DocOnce source @@ -63,6 +64,7 @@ end of tocinfo --> Contents @@ -82,18 +84,40 @@ end of tocinfo -->+
+ +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+eye = np.eye(4)
+print(eye)
+sparse_mtx = sparse.csr_matrix(eye)
+print(sparse_mtx)
+x = np.linspace(-10,10,100)
+y = np.sin(x)
+plt.plot(x,y,marker='x')
+plt.show()
+data = {'Name': ["John", "Anna", "Peter", "Linda"], 'Location': ["Roma", "Napoli", "Torino", "Milano"], 'Age':[51, 21, 34, 45]}
+data_pandas = pd.DataFrame(data)
+display(data_pandas)
+
diff --git a/doc/pub/How2ReadData/html/How2ReadData-bs.html b/doc/pub/How2ReadData/html/How2ReadData-bs.html index 5719cc4c0..eb14f46f6 100644 --- a/doc/pub/How2ReadData/html/How2ReadData-bs.html +++ b/doc/pub/How2ReadData/html/How2ReadData-bs.html @@ -40,7 +40,8 @@ Automatically generated HTML file from DocOnce source @@ -63,6 +64,7 @@ end of tocinfo --> Contents @@ -112,6 +114,7 @@ end of tocinfo --> diff --git a/doc/pub/How2ReadData/html/How2ReadData-reveal.html b/doc/pub/How2ReadData/html/How2ReadData-reveal.html index c5132d2f5..234d4cb92 100644 --- a/doc/pub/How2ReadData/html/How2ReadData-reveal.html +++ b/doc/pub/How2ReadData/html/How2ReadData-reveal.html @@ -147,6 +147,55 @@ td.padding {
+ + +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+eye = np.eye(4)
+print(eye)
+sparse_mtx = sparse.csr_matrix(eye)
+print(sparse_mtx)
+x = np.linspace(-10,10,100)
+y = np.sin(x)
+plt.plot(x,y,marker='x')
+plt.show()
+data = {'Name': ["John", "Anna", "Peter", "Linda"], 'Location': ["Roma", "Napoli", "Torino", "Milano"], 'Age':[51, 21, 34, 45]}
+data_pandas = pd.DataFrame(data)
+display(data_pandas)
++ + +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+import mglearn
+import sklearn
+from sklearn.linear_model import LinearRegression
+from sklearn.tree import DecisionTreeRegressor
+x, y = mglearn.datasets.make_wave(n_samples=100)
+line = np.linspace(-3,3,1000,endpoint=False).reshape(-1,1)
+reg = DecisionTreeRegressor(min_samples_split=3).fit(x,y)
+plt.plot(line, reg.predict(line), label="decision tree")
+regline = LinearRegression().fit(x,y)
+plt.plot(line, regline.predict(line), label= "Linear Rgression")
+plt.show()
++
+ +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+eye = np.eye(4)
+print(eye)
+sparse_mtx = sparse.csr_matrix(eye)
+print(sparse_mtx)
+x = np.linspace(-10,10,100)
+y = np.sin(x)
+plt.plot(x,y,marker='x')
+plt.show()
+data = {'Name': ["John", "Anna", "Peter", "Linda"], 'Location': ["Roma", "Napoli", "Torino", "Milano"], 'Age':[51, 21, 34, 45]}
+data_pandas = pd.DataFrame(data)
+display(data_pandas)
+
+
+
+
+
+ + +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+import mglearn
+import sklearn
+from sklearn.linear_model import LinearRegression
+from sklearn.tree import DecisionTreeRegressor
+x, y = mglearn.datasets.make_wave(n_samples=100)
+line = np.linspace(-3,3,1000,endpoint=False).reshape(-1,1)
+reg = DecisionTreeRegressor(min_samples_split=3).fit(x,y)
+plt.plot(line, reg.predict(line), label="decision tree")
+regline = LinearRegression().fit(x,y)
+plt.plot(line, regline.predict(line), label= "Linear Rgression")
+plt.show()
++
+ +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+eye = np.eye(4)
+print(eye)
+sparse_mtx = sparse.csr_matrix(eye)
+print(sparse_mtx)
+x = np.linspace(-10,10,100)
+y = np.sin(x)
+plt.plot(x,y,marker='x')
+plt.show()
+data = {'Name': ["John", "Anna", "Peter", "Linda"], 'Location': ["Roma", "Napoli", "Torino", "Milano"], 'Age':[51, 21, 34, 45]}
+data_pandas = pd.DataFrame(data)
+display(data_pandas)
+
+
+
+
+
+ + +
import numpy as np
+import matplotlib.pyplot as plt
+from scipy import sparse
+import pandas as pd
+from IPython.display import display
+import mglearn
+import sklearn
+from sklearn.linear_model import LinearRegression
+from sklearn.tree import DecisionTreeRegressor
+x, y = mglearn.datasets.make_wave(n_samples=100)
+line = np.linspace(-3,3,1000,endpoint=False).reshape(-1,1)
+reg = DecisionTreeRegressor(min_samples_split=3).fit(x,y)
+plt.plot(line, reg.predict(line), label="decision tree")
+regline = LinearRegression().fit(x,y)
+plt.plot(line, regline.predict(line), label= "Linear Rgression")
+plt.show()
+