CoCalc Public Fileshvplot / gen_dummy_data.ipynbOpen with one click!
Author: Arman
Views : 97
Compute Environment: Ubuntu 18.04 (Experimental)

How to run

  • generate a dummy data by this script
  • run bokeh server:
bokeh serve --disable-index-redirect --allow-websocket-origin='*' server_app.py
  • visit page:
https://cocalc.com/0071c90a-9552-478e-a01d-626167994f46/server/5006/server_app
In [3]:
import pandas as pd from sklearn.datasets import make_blobs X, y = make_blobs(n_samples=100000, centers=4, n_features=2, random_state=0) df=pd.DataFrame({"xgal":X[:,0],"ygal":X[:,1],"label":y}) df.plot(kind="scatter",x="xgal",y="ygal",c="label",cmap="Greens" )
<matplotlib.axes._subplots.AxesSubplot at 0x7f1f97777828>
In [4]:
df.to_parquet("blob_data.parq")
In [ ]:
In [ ]:
In [ ]: