We know from our previous experience on this data set that filtering
data is a really bad idea. We will therefore process it as such.
#+BEGIN_SRC python :session :exports both :results output
#+BEGIN_SRC python :session :exports both :results output
#%matplotlib inline
pd.set_option('mode.chained_assignment',None) # this removes a useless warning from pandas
import matplotlib.pyplot as plt
...
...
@@ -193,6 +193,8 @@ plt.savefig("fig1.png")
#+END_SRC
#+RESULTS:
: /home/eliox/miniconda3/envs/mooc-rr-emacs/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py:320: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
: fig = self.plt.figure(figsize=self.figsize)
: 'c' argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapping will have precedence in case its length matches with 'x' & 'y'. Please use a 2-D array with a single row if you really want to specify the same RGB or RGBA value for all points.
[[./fig1.png]]
...
...
@@ -206,7 +208,7 @@ Let's assume O-rings independently fail with the same probability which
solely depends on temperature. A logistic regression should allow us to
estimate the influence of temperature.
#+BEGIN_SRC python :session :exports both :results value
#+BEGIN_SRC python :session :exports both :results output
: /tmp/babel-tMc2Ef/python-j6HG2E:2: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).