<div dir="ltr">Dear Scikit-learn,<div><br></div><div>What are some good ways and resources to learn Python for data analysis?</div><div><br></div><div><div>I am extremely frustrated using this thing. Everything comes after a dot! Why would you type the sam thing at the beginning of every line. It's not efficient.</div></div><div><br></div><div>code 1:</div><div>y_sin = np.sin(x)</div><div>y_cos = np.cos(x)</div><div><br></div><div>I know you can import the entire package without the "as np", but I see np.something as the standard. Why?<br></div><div><br></div><div><div><div>Code 2:</div><div>model = LogisticRegression()</div><div>model.fit(X_train, y_train)</div></div><div>model.score(X_test, y_test)<br></div></div><div><br></div><div>In R, everything is saved to a variable. In the code above, what if I accidentally ran model.fit(), I would not know.</div><div><br></div><div>Code 3:</div>from sklearn import linear_model<br>reg = linear_model.Ridge (alpha = .5)<br>reg.fit ([[0, 0], [0, 0], [1, 1]], [0, .1, 1]) <div><br></div><div>In the code above, sklearn > linear_model > Ridge, one lives inside the other, it feels that there are multiple layer, how deep do I have to dig in?</div><div><br></div><div>Can someone explain the mentality behind this setup?</div><div><br></div><div>Thank you very much!</div><div><br></div><div>M</div></div>