python - 错误消息:超出 IOPub 数据速率。从列表中提取字符串时
问题描述
再会,
我正在编写一个函数来预处理字符串数据。我希望将字符串数据小写。我试图通过传入一个名为 messages 的列表来测试该函数,该列表是一个字符串列表。但是,当我调用该函数时,我不断收到此错误:
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
我很困惑为什么会出现该消息?这里的任何建议将不胜感激。谢谢
解决方案
推荐阅读
- python - 代码找不到平方数(python初学者)
- oracle - Oracle 19c - 无法与我在 SQL 开发人员中创建的新用户连接
- c# - 在 C# Entity Framework 中的 sql 连接字符串中使用端口:不支持关键字:“端口”
- python - 我安装了pwndbg,但是出现这样的错误。如何解决这个错误?
- php - laravel 未定义变量:fetchdata(查看:C:\xampp\htdocs\A3Solution\resources\views\A3View\view.blade.php)
- python - 从 cmd 运行时出现 Python setup.py 错误
- google-apps-script - 缺少标识符 rc 的库
- python - 在 GUI 中输入并在 IDLE 中打印(python)
- makefile - (GNU) Make 如何处理多个匹配目标?
- windows - TSaveDialog 改变文件名的大小写