Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>ValueError: cannot set a frame with no defined index and a scalar // Werkzeug Debugger</title>
- <link rel="stylesheet" href="?__debugger__=yes&cmd=resource&f=style.css"
- type="text/css">
- <!-- We need to make sure this has a favicon so that the debugger does
- not by accident trigger a request to /favicon.ico which might
- change the application state. -->
- <link rel="shortcut icon"
- href="?__debugger__=yes&cmd=resource&f=console.png">
- <script src="?__debugger__=yes&cmd=resource&f=jquery.js"></script>
- <script src="?__debugger__=yes&cmd=resource&f=debugger.js"></script>
- <script type="text/javascript">
- var TRACEBACK = 139843316001032,
- CONSOLE_MODE = false,
- EVALEX = true,
- EVALEX_TRUSTED = false,
- SECRET = "F34rfglVmTqeRTV61pDg";
- </script>
- </head>
- <body style="background-color: #fff">
- <div class="debugger">
- <h1>ValueError</h1>
- <div class="detail">
- <p class="errormsg">ValueError: cannot set a frame with no defined index and a scalar</p>
- </div>
- <h2 class="traceback">Traceback <em>(most recent call last)</em></h2>
- <div class="traceback">
- <ul><li><div class="frame" id="frame-139843316001256">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">2328</em>,
- in <code class="function">__call__</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"></span> </pre>
- <pre class="line before"><span class="ws"> </span>def __call__(self, environ, start_response):</pre>
- <pre class="line before"><span class="ws"> </span>"""The WSGI server calls the Flask application object as the</pre>
- <pre class="line before"><span class="ws"> </span>WSGI application. This calls :meth:`wsgi_app` which can be</pre>
- <pre class="line before"><span class="ws"> </span>wrapped to applying middleware."""</pre>
- <pre class="line current"><span class="ws"> </span>return self.wsgi_app(environ, start_response)</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>def __repr__(self):</pre>
- <pre class="line after"><span class="ws"> </span>return '<%s %r>' % (</pre>
- <pre class="line after"><span class="ws"> </span>self.__class__.__name__,</pre>
- <pre class="line after"><span class="ws"> </span>self.name,</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999408">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">2314</em>,
- in <code class="function">wsgi_app</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>try:</pre>
- <pre class="line before"><span class="ws"> </span>ctx.push()</pre>
- <pre class="line before"><span class="ws"> </span>response = self.full_dispatch_request()</pre>
- <pre class="line before"><span class="ws"> </span>except Exception as e:</pre>
- <pre class="line before"><span class="ws"> </span>error = e</pre>
- <pre class="line current"><span class="ws"> </span>response = self.handle_exception(e)</pre>
- <pre class="line after"><span class="ws"> </span>except:</pre>
- <pre class="line after"><span class="ws"> </span>error = sys.exc_info()[1]</pre>
- <pre class="line after"><span class="ws"> </span>raise</pre>
- <pre class="line after"><span class="ws"> </span>return response(environ, start_response)</pre>
- <pre class="line after"><span class="ws"> </span>finally:</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999576">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">1760</em>,
- in <code class="function">handle_exception</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span># if we want to repropagate the exception, we can attempt to</pre>
- <pre class="line before"><span class="ws"> </span># raise it with the whole traceback in case we can do that</pre>
- <pre class="line before"><span class="ws"> </span># (the function was actually called from the except part)</pre>
- <pre class="line before"><span class="ws"> </span># otherwise, we just raise the error again</pre>
- <pre class="line before"><span class="ws"> </span>if exc_value is e:</pre>
- <pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre>
- <pre class="line after"><span class="ws"> </span>else:</pre>
- <pre class="line after"><span class="ws"> </span>raise e</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>self.log_exception((exc_type, exc_value, tb))</pre>
- <pre class="line after"><span class="ws"> </span>if handler is None:</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999744">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/_compat.py"</cite>,
- line <em class="line">36</em>,
- in <code class="function">reraise</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>import collections.abc as collections_abc</pre>
- <pre class="line before"><span class="ws"></span> </pre>
- <pre class="line before"><span class="ws"> </span>def reraise(tp, value, tb=None):</pre>
- <pre class="line before"><span class="ws"> </span>if value.__traceback__ is not tb:</pre>
- <pre class="line before"><span class="ws"> </span>raise value.with_traceback(tb)</pre>
- <pre class="line current"><span class="ws"> </span>raise value</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>implements_to_string = _identity</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"></span>else:</pre>
- <pre class="line after"><span class="ws"> </span>text_type = unicode</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999072">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">2311</em>,
- in <code class="function">wsgi_app</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>ctx = self.request_context(environ)</pre>
- <pre class="line before"><span class="ws"> </span>error = None</pre>
- <pre class="line before"><span class="ws"> </span>try:</pre>
- <pre class="line before"><span class="ws"> </span>try:</pre>
- <pre class="line before"><span class="ws"> </span>ctx.push()</pre>
- <pre class="line current"><span class="ws"> </span>response = self.full_dispatch_request()</pre>
- <pre class="line after"><span class="ws"> </span>except Exception as e:</pre>
- <pre class="line after"><span class="ws"> </span>error = e</pre>
- <pre class="line after"><span class="ws"> </span>response = self.handle_exception(e)</pre>
- <pre class="line after"><span class="ws"> </span>except:</pre>
- <pre class="line after"><span class="ws"> </span>error = sys.exc_info()[1]</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999968">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">1834</em>,
- in <code class="function">full_dispatch_request</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>request_started.send(self)</pre>
- <pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre>
- <pre class="line before"><span class="ws"> </span>if rv is None:</pre>
- <pre class="line before"><span class="ws"> </span>rv = self.dispatch_request()</pre>
- <pre class="line before"><span class="ws"> </span>except Exception as e:</pre>
- <pre class="line current"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre>
- <pre class="line after"><span class="ws"> </span>return self.finalize_request(rv)</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>def finalize_request(self, rv, from_error_handler=False):</pre>
- <pre class="line after"><span class="ws"> </span>"""Given the return value from a view function this finalizes</pre>
- <pre class="line after"><span class="ws"> </span>the request by converting it into a response and invoking the</pre></div>
- </div>
- <li><div class="frame" id="frame-139843316000080">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">1737</em>,
- in <code class="function">handle_user_exception</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>return self.handle_http_exception(e)</pre>
- <pre class="line before"><span class="ws"></span> </pre>
- <pre class="line before"><span class="ws"> </span>handler = self._find_error_handler(e)</pre>
- <pre class="line before"><span class="ws"></span> </pre>
- <pre class="line before"><span class="ws"> </span>if handler is None:</pre>
- <pre class="line current"><span class="ws"> </span>reraise(exc_type, exc_value, tb)</pre>
- <pre class="line after"><span class="ws"> </span>return handler(e)</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>def handle_exception(self, e):</pre>
- <pre class="line after"><span class="ws"> </span>"""Default exception handling that kicks in when an exception</pre>
- <pre class="line after"><span class="ws"> </span>occurs that is not caught. In debug mode the exception will</pre></div>
- </div>
- <li><div class="frame" id="frame-139843316000192">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/_compat.py"</cite>,
- line <em class="line">36</em>,
- in <code class="function">reraise</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>import collections.abc as collections_abc</pre>
- <pre class="line before"><span class="ws"></span> </pre>
- <pre class="line before"><span class="ws"> </span>def reraise(tp, value, tb=None):</pre>
- <pre class="line before"><span class="ws"> </span>if value.__traceback__ is not tb:</pre>
- <pre class="line before"><span class="ws"> </span>raise value.with_traceback(tb)</pre>
- <pre class="line current"><span class="ws"> </span>raise value</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>implements_to_string = _identity</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"></span>else:</pre>
- <pre class="line after"><span class="ws"> </span>text_type = unicode</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999296">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">1832</em>,
- in <code class="function">full_dispatch_request</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>self.try_trigger_before_first_request_functions()</pre>
- <pre class="line before"><span class="ws"> </span>try:</pre>
- <pre class="line before"><span class="ws"> </span>request_started.send(self)</pre>
- <pre class="line before"><span class="ws"> </span>rv = self.preprocess_request()</pre>
- <pre class="line before"><span class="ws"> </span>if rv is None:</pre>
- <pre class="line current"><span class="ws"> </span>rv = self.dispatch_request()</pre>
- <pre class="line after"><span class="ws"> </span>except Exception as e:</pre>
- <pre class="line after"><span class="ws"> </span>rv = self.handle_user_exception(e)</pre>
- <pre class="line after"><span class="ws"> </span>return self.finalize_request(rv)</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>def finalize_request(self, rv, from_error_handler=False):</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999632">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py"</cite>,
- line <em class="line">1818</em>,
- in <code class="function">dispatch_request</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span># request came with the OPTIONS method, reply automatically</pre>
- <pre class="line before"><span class="ws"> </span>if getattr(rule, 'provide_automatic_options', False) \</pre>
- <pre class="line before"><span class="ws"> </span>and req.method == 'OPTIONS':</pre>
- <pre class="line before"><span class="ws"> </span>return self.make_default_options_response()</pre>
- <pre class="line before"><span class="ws"> </span># otherwise dispatch to the handler for that endpoint</pre>
- <pre class="line current"><span class="ws"> </span>return self.view_functions[rule.endpoint](**req.view_args)</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>def full_dispatch_request(self):</pre>
- <pre class="line after"><span class="ws"> </span>"""Dispatches the request and on top of that performs request</pre>
- <pre class="line after"><span class="ws"> </span>pre and postprocessing as well as HTTP exception catching and</pre>
- <pre class="line after"><span class="ws"> </span>error handling.</pre></div>
- </div>
- <li><div class="frame" id="frame-139843316000416">
- <h4>File <cite class="filename">"/src/scoring_model/api.py"</cite>,
- line <em class="line">72</em>,
- in <code class="function">predict</code></h4>
- <div class="source "><pre class="line before"><span class="ws"> </span>with open(filename, 'w') as fp:</pre>
- <pre class="line before"><span class="ws"> </span>json.dump([data], fp)</pre>
- <pre class="line before"><span class="ws"> </span>time2 = time.time()</pre>
- <pre class="line before"><span class="ws"></span> </pre>
- <pre class="line before"><span class="ws"> </span># vytáhnu si jen finální X, ostatní věci rovnou zahazuji</pre>
- <pre class="line current"><span class="ws"> </span>_, _, _, _, _, X = clean_new_x(filename)</pre>
- <pre class="line after"><span class="ws"> </span>time3 = time.time()</pre>
- <pre class="line after"><span class="ws"> </span>Y = MODEL.predict_proba(X)[0][1]</pre>
- <pre class="line after"><span class="ws"> </span>time4 = time.time()</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>response = {</pre></div>
- </div>
- <li><div class="frame" id="frame-139843316000808">
- <h4>File <cite class="filename">"/src/scoring_model/DataProcessing.py"</cite>,
- line <em class="line">175</em>,
- in <code class="function">clean_new_x</code></h4>
- <div class="source "><pre class="line before"><span class="ws"> </span>Export3['Request_DayOfWeek'] = Export3['request_time'].apply(lambda x: x.strftime("%A"))</pre>
- <pre class="line before"><span class="ws"> </span>Export3['Request_zoneDay'] = Export3['request_time'].apply(lambda x: x.strftime("%p"))</pre>
- <pre class="line before"><span class="ws"> </span>Export3['Request_Month'] = Export3['request_time'].apply(lambda x: x.strftime("%b"))</pre>
- <pre class="line before"><span class="ws"> </span>Export3['Request_Time'] = Export3['request_time'].apply(lambda x: x.strftime("%X"))</pre>
- <pre class="line before"><span class="ws"></span> </pre>
- <pre class="line current"><span class="ws"> </span>Export3.loc[(Export3.Request_Time > '00:00:00') & (Export3.Request_Time <= '03:00:00'), 'Range_time'] = '0_3'</pre>
- <pre class="line after"><span class="ws"> </span>Export3.loc[(Export3.Request_Time > '03:00:00') & (Export3.Request_Time <= '06:00:00'), 'Range_time'] = '3_6'</pre>
- <pre class="line after"><span class="ws"> </span>Export3.loc[(Export3.Request_Time > '06:00:00') & (Export3.Request_Time <= '09:00:00'), 'Range_time'] = '6_9'</pre>
- <pre class="line after"><span class="ws"> </span>Export3.loc[(Export3.Request_Time > '09:00:00') & (Export3.Request_Time <= '12:00:00'), 'Range_time'] = '9_12'</pre>
- <pre class="line after"><span class="ws"> </span>Export3.loc[(Export3.Request_Time > '12:00:00') & (Export3.Request_Time <= '15:00:00'), 'Range_time'] = '12_15'</pre>
- <pre class="line after"><span class="ws"> </span>Export3.loc[(Export3.Request_Time > '15:00:00') & (Export3.Request_Time <= '18:00:00'), 'Range_time'] = '15_18'</pre></div>
- </div>
- <li><div class="frame" id="frame-139843315999856">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/pandas/core/indexing.py"</cite>,
- line <em class="line">190</em>,
- in <code class="function">__setitem__</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>key = tuple(com.apply_if_callable(x, self.obj)</pre>
- <pre class="line before"><span class="ws"> </span>for x in key)</pre>
- <pre class="line before"><span class="ws"> </span>else:</pre>
- <pre class="line before"><span class="ws"> </span>key = com.apply_if_callable(key, self.obj)</pre>
- <pre class="line before"><span class="ws"> </span>indexer = self._get_setitem_indexer(key)</pre>
- <pre class="line current"><span class="ws"> </span>self._setitem_with_indexer(indexer, value)</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span>def _validate_key(self, key, axis):</pre>
- <pre class="line after"><span class="ws"> </span>"""</pre>
- <pre class="line after"><span class="ws"> </span>Ensure that key is valid for current indexer.</pre>
- <pre class="line after"><span class="ws"></span> </pre></div>
- </div>
- <li><div class="frame" id="frame-139843316000696">
- <h4>File <cite class="filename">"/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/pandas/core/indexing.py"</cite>,
- line <em class="line">356</em>,
- in <code class="function">_setitem_with_indexer</code></h4>
- <div class="source library"><pre class="line before"><span class="ws"> </span>len(_ax) for _i, _ax in enumerate(self.obj.axes)</pre>
- <pre class="line before"><span class="ws"> </span>if _i != i</pre>
- <pre class="line before"><span class="ws"> </span>]</pre>
- <pre class="line before"><span class="ws"> </span>if any(not l for l in len_non_info_axes):</pre>
- <pre class="line before"><span class="ws"> </span>if not is_list_like_indexer(value):</pre>
- <pre class="line current"><span class="ws"> </span>raise ValueError("cannot set a frame with no "</pre>
- <pre class="line after"><span class="ws"> </span>"defined index and a scalar")</pre>
- <pre class="line after"><span class="ws"> </span>self.obj[key] = value</pre>
- <pre class="line after"><span class="ws"> </span>return self.obj</pre>
- <pre class="line after"><span class="ws"></span> </pre>
- <pre class="line after"><span class="ws"> </span># add a new item with the dtype setup</pre></div>
- </div>
- </ul>
- <blockquote>ValueError: cannot set a frame with no defined index and a scalar</blockquote>
- </div>
- <div class="plain">
- <form action="/?__debugger__=yes&cmd=paste" method="post">
- <p>
- <input type="hidden" name="language" value="pytb">
- This is the Copy/Paste friendly version of the traceback. <span
- class="pastemessage">You can also paste this traceback into
- a <a href="https://gist.github.com/">gist</a>:
- <input type="submit" value="create paste"></span>
- </p>
- <textarea cols="50" rows="10" name="code" readonly>Traceback (most recent call last):
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 2328, in __call__
- return self.wsgi_app(environ, start_response)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 2314, in wsgi_app
- response = self.handle_exception(e)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1760, in handle_exception
- reraise(exc_type, exc_value, tb)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/_compat.py", line 36, in reraise
- raise value
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 2311, in wsgi_app
- response = self.full_dispatch_request()
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1834, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1737, in handle_user_exception
- reraise(exc_type, exc_value, tb)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/_compat.py", line 36, in reraise
- raise value
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1832, in full_dispatch_request
- rv = self.dispatch_request()
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1818, in dispatch_request
- return self.view_functions[rule.endpoint](**req.view_args)
- File "/src/scoring_model/api.py", line 72, in predict
- _, _, _, _, _, X = clean_new_x(filename)
- File "/src/scoring_model/DataProcessing.py", line 175, in clean_new_x
- Export3.loc[(Export3.Request_Time > '00:00:00') & (Export3.Request_Time <= '03:00:00'), 'Range_time'] = '0_3'
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/pandas/core/indexing.py", line 190, in __setitem__
- self._setitem_with_indexer(indexer, value)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/pandas/core/indexing.py", line 356, in _setitem_with_indexer
- raise ValueError("cannot set a frame with no "
- ValueError: cannot set a frame with no defined index and a scalar</textarea>
- </form>
- </div>
- <div class="explanation">
- The debugger caught an exception in your WSGI application. You can now
- look at the traceback which led to the error. <span class="nojavascript">
- If you enable JavaScript you can also use additional features such as code
- execution (if the evalex feature is enabled), automatic pasting of the
- exceptions and much more.</span>
- </div>
- <div class="footer">
- Brought to you by <strong class="arthur">DON'T PANIC</strong>, your
- friendly Werkzeug powered traceback interpreter.
- </div>
- </div>
- <div class="pin-prompt">
- <div class="inner">
- <h3>Console Locked</h3>
- <p>
- The console is locked and needs to be unlocked by entering the PIN.
- You can find the PIN printed out on the standard output of your
- shell that runs the server.
- <form>
- <p>PIN:
- <input type=text name=pin size=14>
- <input type=submit name=btn value="Confirm Pin">
- </form>
- </div>
- </div>
- </body>
- </html>
- <!--
- Traceback (most recent call last):
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 2328, in __call__
- return self.wsgi_app(environ, start_response)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 2314, in wsgi_app
- response = self.handle_exception(e)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1760, in handle_exception
- reraise(exc_type, exc_value, tb)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/_compat.py", line 36, in reraise
- raise value
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 2311, in wsgi_app
- response = self.full_dispatch_request()
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1834, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1737, in handle_user_exception
- reraise(exc_type, exc_value, tb)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/_compat.py", line 36, in reraise
- raise value
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1832, in full_dispatch_request
- rv = self.dispatch_request()
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/flask/app.py", line 1818, in dispatch_request
- return self.view_functions[rule.endpoint](**req.view_args)
- File "/src/scoring_model/api.py", line 72, in predict
- _, _, _, _, _, X = clean_new_x(filename)
- File "/src/scoring_model/DataProcessing.py", line 175, in clean_new_x
- Export3.loc[(Export3.Request_Time > '00:00:00') & (Export3.Request_Time <= '03:00:00'), 'Range_time'] = '0_3'
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/pandas/core/indexing.py", line 190, in __setitem__
- self._setitem_with_indexer(indexer, value)
- File "/root/.local/share/virtualenvs/scoring_model-W1bJqQjW/lib/python3.7/site-packages/pandas/core/indexing.py", line 356, in _setitem_with_indexer
- raise ValueError("cannot set a frame with no "
- ValueError: cannot set a frame with no defined index and a scalar
- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement