美好的一天
我正在编写一个函数来预处理字符串数据。我希望小写字符串数据。我试图通过传递一个称为message的列表(字符串列表)来测试该功能。但是,当我调用该函数时,我总是收到此错误:
IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.
Current values:
NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
NotebookApp.rate_limit_window=3.0 (secs)
这是我的功能:
def text_preprocess(message)
""" message: the text data to be processed """
words = ''.join(str(twit.lower()) for twit in message)
return words
# Testing the function on a list of strings called messages
test = text_preprocess(messages)
# Length of the list messages
print(len(messages))
Output: 1548000
我对于为什么出现该消息感到困惑?这里的任何建议将不胜感激。谢谢