Create scikit-xg-predict.py (#1422)
Create scikit-xg-predict.py (#1422)

* Create scikit-xg-predict.py

This predict_json method uses exactly the same code as in https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/ml_engine/online_prediction/predict.py#L28. The only difference is that the definition of instances at line 29 is updated to be more appropriate for scikit and xgb. Kathy provided the updated definition.

* Lint tweaks

* Trailing whitespace removed.

GoogleCloudPlatform/python-docs-samples,GoogleCloudPlatform/python-docs-samples,GoogleCloudPlatform/python-docs-samples,GoogleCloudPlatform/python-docs-samples