无法将 json 文件加载到 Google Colab
Failing to load json file into Google Colab
我正在对以 json 格式给出的数据执行机器学习实现。
因为没有经验所以没怎么尝试
我要阅读的代码是:
with open('attempts.json') as my_file:
d = json.load(my_file)
我收到如下错误:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
我已经将 260mb 的 attempts.json 文件替换为 12kb 的 grades.json,但仍然有同样的问题。
您的 json 文件必须有内容且格式正确。
基于这个错误,我认为你的 json 文件是空的。
我正在对以 json 格式给出的数据执行机器学习实现。 因为没有经验所以没怎么尝试
我要阅读的代码是:
with open('attempts.json') as my_file:
d = json.load(my_file)
我收到如下错误:
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
我已经将 260mb 的 attempts.json 文件替换为 12kb 的 grades.json,但仍然有同样的问题。
您的 json 文件必须有内容且格式正确。 基于这个错误,我认为你的 json 文件是空的。