以下可重现的代码给了我:BadZipFile("File is not a zip file") 错误。我不知道如何解决它。
import pandas as pd
from io import StringIO, BytesIO, TextIOWrapper
from zipfile import ZipFile
import urllib
url = 'https://drive.google.com/file/d/1gQGYF8TaznCfdevo7-MsHW5IcwftZWP_/view?usp=sharing'
zip_file_name = 'high_dimensional_datasets.zip'
resp = urllib.request.urlopen(url + urllib.request.quote(zip_file_name))
zipfile = ZipFile(BytesIO(resp.read()))
data = TextIOWrapper(zipfile.open('high42.csv'), encoding='utf-8')
df = pd.read_csv(data)