我正在尝试从pypy作为源的jupyter笔记本中获取记录。 通过仅提供少量参数来获取记录的正确条件是什么?
Excel已加载到Jupyter笔记本中。在我的excel源文件中,我有一列名为“摘要”。每个摘要中的记录都包含许多单词。我需要通过只给出很少的单词来从摘要列中获取记录。
test_spam.py::test_good_input[10:30-11:30] PASSED
test_spam.py::test_good_input[11:30-12:30] PASSED
test_spam.py::test_good_input[10:30-bar] ERROR
============================================= ERRORS ==============================================
__________________________ ERROR at setup of test_good_input[10:30-bar] ___________________________
...
input = 'bar'
def validate(input):
try:
datetime.strptime(input, '%H:%M')
except ValueError as e:
> pytest.fail('Your test parametrization is wrong. The test argument is erroneous: {}'.format(e))
E Failed: Your test parametrization is wrong. The test argument is erroneous: time data 'bar' does not match format '%H:%M'
test_spam.py:15: Failed
================================ 2 passed, 1 error in 0.05 seconds ================================
上面的输出为负,而好像我在excel文件中搜索一样,有两条记录以“ FW:”开头。