<jupyter_start><jupyter_text>Title of Workbook This template is intended to provide a base to work from in Data Science and Analytics. Some simple functions and imports are included for example.  Setup importsExample and common Data Science packages are included for the import<jupyter_code>import os, os.path
import pandas as pd
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
from pathlib import Path
import dask<jupyter_output><empty_output><jupyter_text>Set Variables<jupyter_code>x = 1 #placeholder<jupyter_output><empty_output><jupyter_text>Create Functions  Test if a file exists<jupyter_code>def testFileExisits(locationPath):
    print(locationPath)
    assert os.path.exists(locationPath)<jupyter_output><empty_output><jupyter_text>Test if a path exists or create<jupyter_code>def createLocationPath(locationPath):
    print(locationPath)
    path = Path(locationPath)
    path.mkdir(parents=True, exist_ok=True)
    assert os.path.exists(locationPath)<jupyter_output><empty_output><jupyter_text>Check which OS is running the workbook<jupyter_code>def detectOS():
    if (os.name == "nt"):
        #Windows
        print("This is Windows")
    elif (os.name == "posix"):
        #Linux
        print("This is Linux")
    else:
        print("Unknown OS")<jupyter_output><empty_output><jupyter_text>Create Objects<jupyter_code>class exampleClass(object):
    
    def __init__(self, inputString):
        self.savedString = inputString
    
    def printInput(self, inputString):
        print(inputString)
    
    
    def printSavedInput(self):
        print(self.savedString)<jupyter_output><empty_output><jupyter_text>Instantiate Objects<jupyter_code>theObject = exampleClass("Hello World")<jupyter_output><empty_output><jupyter_text>Run Stuff<jupyter_code>detectOS()
theObject.printSavedInput()
theObject.printInput("Hello Universe")<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup