... [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificateimport ssl
ssl._create_default_https_context = ssl._create_unverified_context| production_fname = '{}/production.csv'.format(os.getcwd()) | |
| def write_prodfile(production_df): | |
| if os.path.isfile(production_fname): | |
| # Remove if exists | |
| os.remove(production_fname) | |
| production_df.to_csv(r'{}'.format(production_fname), index = False) |
| from zipfile import ZipFile | |
| from google.colab import files | |
| !rm -rf kaggle.json | |
| !rm -rf /root/.kaggle/kaggle.json | |
| ''' | |
| If you found an error "TypeError: Cannot read property '_uploadFiles' of undefined", | |
| please check cookie mode. You need to allow all cookie | |
| ''' | |
| files.upload() #upload kaggle.json |