Tutorial básico Julia Python
ubuntu2004
Kernel: SageMath 9.4
In [2]:
In [3]:
Out[3]:
In [9]:
In [10]:
Out[10]:
In [17]:
Out[17]:
True
In [28]:
Out[28]:
File "<ipython-input-28-fae6514ef85d>", line 1
saida.loc[[Integer(2):]]
^
SyntaxError: invalid syntax
In [15]:
Out[15]:
In [29]:
Out[29]:
In [30]:
Out[30]:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-30-05cb1be5acfb> in <module>
14 fig, ax = plt.subplots()
15 x = mu + sigma * np.random.randn(Integer(10000))
---> 16 n, bins, patches = plt.hist(x, Integer(50), normed=Integer(1), facecolor='green', alpha=RealNumber('0.75'))
17
18 ani = animation.FuncAnimation(fig, animate, blit=True, interval=Integer(10),
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/pyplot.py in hist(x, bins, range, density, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, data, **kwargs)
2683 orientation='vertical', rwidth=None, log=False, color=None,
2684 label=None, stacked=False, *, data=None, **kwargs):
-> 2685 return gca().hist(
2686 x, bins=bins, range=range, density=density, weights=weights,
2687 cumulative=cumulative, bottom=bottom, histtype=histtype,
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/__init__.py in inner(ax, data, *args, **kwargs)
1445 def inner(ax, *args, data=None, **kwargs):
1446 if data is None:
-> 1447 return func(ax, *map(sanitize_sequence, args), **kwargs)
1448
1449 bound = new_sig.bind(ax, *args, **kwargs)
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py in hist(self, x, bins, range, density, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, **kwargs)
6813 if patch:
6814 p = patch[0]
-> 6815 p.update(kwargs)
6816 if lbl is not None:
6817 p.set_label(lbl)
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/artist.py in update(self, props)
994 func = getattr(self, f"set_{k}", None)
995 if not callable(func):
--> 996 raise AttributeError(f"{type(self).__name__!r} object "
997 f"has no property {k!r}")
998 ret.append(func(v))
AttributeError: 'Rectangle' object has no property 'normed'
In [31]:
Out[31]:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-31-5cefc7834dc4> in <module>
6 fig = plt.figure()
7 x = mu + sigma*np.random.randn(Integer(10000))
----> 8 n, bins, patches = plt.hist(x, Integer(50), normed=Integer(1), facecolor='green', alpha=RealNumber('0.75'))
9 for i in range(Integer(50)):
10 x = mu + sigma*np.random.randn(Integer(10000))
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/pyplot.py in hist(x, bins, range, density, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, data, **kwargs)
2683 orientation='vertical', rwidth=None, log=False, color=None,
2684 label=None, stacked=False, *, data=None, **kwargs):
-> 2685 return gca().hist(
2686 x, bins=bins, range=range, density=density, weights=weights,
2687 cumulative=cumulative, bottom=bottom, histtype=histtype,
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/__init__.py in inner(ax, data, *args, **kwargs)
1445 def inner(ax, *args, data=None, **kwargs):
1446 if data is None:
-> 1447 return func(ax, *map(sanitize_sequence, args), **kwargs)
1448
1449 bound = new_sig.bind(ax, *args, **kwargs)
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py in hist(self, x, bins, range, density, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, **kwargs)
6813 if patch:
6814 p = patch[0]
-> 6815 p.update(kwargs)
6816 if lbl is not None:
6817 p.set_label(lbl)
/ext/sage/9.4/local/lib/python3.9/site-packages/matplotlib/artist.py in update(self, props)
994 func = getattr(self, f"set_{k}", None)
995 if not callable(func):
--> 996 raise AttributeError(f"{type(self).__name__!r} object "
997 f"has no property {k!r}")
998 ret.append(func(v))
AttributeError: 'Rectangle' object has no property 'normed'
In [0]: