Skip to content
Advertisement

Tag: kaggle

Try to replace the nan values by pandas , but Error: Columns must be same length as key

It is a simple project in Kaggle, just imitating one blog, but failed. enter image description here train_inf[‘Age’]=train_inf.fillna(train_inf[‘Age’].median()) ValueError: Columns must be same length as key just this code I am searching for a long time on net. But no use. Please help or try to give some ideas how achieve this. Thanks in advance. Answer You are close, need

Gaierror while importing pretrained vgg model on kaggle

I am trying to import a pre-trained VGG model in keras on kaggle. I run through an gaierror which was unfamiliar. Downloading data from https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg19_weights_tf_dim_ordering_tf_kernels_notop.h5 ————————————————————————— gaierror Traceback (most recent call last) /opt/conda/lib/python3.6/urllib/request.py in do_open(self, http_class, req, **http_conn_args) 1317 h.request(req.get_method(), req.selector, req.data, headers, -> 1318 encode_chunked=req.has_header(‘Transfer-encoding’)) 1319 except OSError as err: # timeout error /opt/conda/lib/python3.6/http/client.py in request(self, method, url, body,

Advertisement