Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Oct 12th, 2018 66 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. {"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from beakerx import *\nimport sys\n\nsys.version\nsys.version_info","execution_count":56,"outputs":[{"output_type":"execute_result","execution_count":56,"data":{"text/plain":"sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)"},"metadata":{}}]},{"metadata":{"trusted":true},"cell_type":"code","source":"#check BeakerX module properly installed & imported\n\nprint(\"BeakerX Version: {}\" .format(beakerx.version_info))","execution_count":44,"outputs":[{"output_type":"stream","text":"BeakerX Version: (1, 1, 0)\n","name":"stdout"}]},{"metadata":{"scrolled":true,"trusted":true},"cell_type":"code","source":"df = pd.read_csv('beakerx-interest-rate-data.csv')\ndf.head()","execution_count":37,"outputs":[{"output_type":"display_data","data":{"application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"a6be6ef7866543c9a7157a254b9b19ba"}},"metadata":{}}]},{"metadata":{"trusted":true},"cell_type":"code","source":"df.head(20)","execution_count":19,"outputs":[{"data":{"application/vnd.jupyter.widget-view+json":{"model_id":"285069e2b6034e6fb61d02ebef1b46ac","version_major":2,"version_minor":0}},"metadata":{},"output_type":"display_data"}]},{"metadata":{"trusted":true},"cell_type":"code","source":"c = Color(120, 120, 120, 100)\nplot1 = Plot(initWidth= 900, initHeight= 600) ","execution_count":61,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"plot1.add(Points(x= df.y1, y=df.y30, size= 2, displayName=\"y1 vs y30\"))\nplot1.add(Line(x= df.y1, y=df.y30, color= c))\nplot1.add(Points(x= df.m3, y=df.y5, size= 2, displayName=\"m3 vs y5\"))\nplot1.add(Line(x= df.m3, y=df.y5, color= c))\nplot1.setShowLegend(True)\n","execution_count":62,"outputs":[{"output_type":"display_data","data":{"application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"2511cd257eb1488ebb83e4fc3883d754"}},"metadata":{}}]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"},"language_info":{"name":"python","version":"3.6.6","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"toc":{"nav_menu":{},"number_sections":false,"sideBar":false,"skip_h1_title":false,"base_numbering":1,"title_cell":"Table of Contents","title_sidebar":"Contents","toc_cell":false,"toc_position":{},"toc_section_display":false,"toc_window_display":false}},"nbformat":4,"nbformat_minor":2}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top