Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When I run question 3 in jupyternotebook, I get the following error message below. /srv/app/venv/lib/python3.6/site-packages/datascience/tables.py:192: FutureWarning: Implicit column method lookup is deprecated. warnings.warn(Implicit column method

image text in transcribed

When I run question 3 in jupyternotebook, I get the following error message below.

/srv/app/venv/lib/python3.6/site-packages/datascience/tables.py:192: FutureWarning: Implicit column method lookup is deprecated. warnings.warn("Implicit column method lookup is deprecated.", FutureWarning) 
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) /srv/app/venv/lib/python3.6/site-packagesumpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds) 56 try: ---> 57 return getattr(obj, method)(*args, **kwds) 58 TypeError: __call__() got an unexpected keyword argument 'axis' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last)  in () 1 indices= np.arange(0,11,1) ----> 2 greatest_nei = np.take(by_nei, [0,1]) 3 greatest_nei /srv/app/venv/lib/python3.6/site-packagesumpy/core/fromnumeric.py in take(a, indices, axis, out, mode) 132 [5, 7]]) 133 """ --> 134 return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode) 135 136 /srv/app/venv/lib/python3.6/site-packagesumpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds) 65 # a downstream library like 'pandas'. 66 except (AttributeError, TypeError): ---> 67 return _wrapit(obj, method, *args, **kwds) 68 69 /srv/app/venv/lib/python3.6/site-packagesumpy/core/fromnumeric.py in _wrapit(obj, method, *args, **kwds) 45 except AttributeError: 46 wrap = None ---> 47 result = getattr(asarray(obj), method)(*args, **kwds) 48 if wrap: 49 if not isinstance(result, mu.ndarray): /srv/app/venv/lib/python3.6/site-packagesumpy/coreumeric.py in asarray(a, dtype, order) 529 530 """ --> 531 return array(a, dtype, copy=False, order=order) 532 533 ValueError: invalid __array_struct__
 
= by_nei unemployment. sort('NEI', descending True) by_nei_pter =unemployment. sort('NEI-PTER', descending = True) Date NEI NEI-PTER 2009-10-01 10.9698 12.8557 2010-01-01 10.9054 12.7311 2009-07-01 10.8089 12.7404 2009-04-01 10.7082 12.5497 2010-04-01 10.6597 12.5664 2010-10-01 10.5856 12.4329 2010-07-01 10.5521 | 12.3897 2011-01-01 10.5024 | 12.3017 2011-07-01 10.4856 12.2507 2011-04-01 | 10.4409 | 12.247 (80 rows omitted) Date NEI NEI-PTER 2009-10-01 10.9698 12.8557 2009-07-01 10.8089 12.7404 2010-01-01 10.9054 12.7311 2010-04-01 10.6597 12.5664 2009-04-01 10.7082 12.5497 2010-10-01 10.5856 12.4329 2010-07-01 10.5521 12.3897 2011-01-01 10.5024 | 12.3017 2011-07-01 10.4856 | 12.2507 2011-04-01 | 10.4409 | 12.247 (80 rows omitted) Question 3. Use take to make a table containing the data for the 10 quarters when NEI was greatest. Call that table greatest_nei indices= np.arange(0,11,1) greatest_nei = np. take by_nei, indices greatest_nei

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+ Are you interested in creating or

Answered: 1 week ago

Question

=+working on a micro-multinational?

Answered: 1 week ago