<jupyter_start><jupyter_text>Sitchensis program demo============<jupyter_code>from IPython.display import HTML

HTML('''<script>
code_show=true; 
function code_toggle() {
 if (code_show){
 $('div.input').hide();
 } else {
 $('div.input').show();
 }
 code_show = !code_show
} 
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" value="Click here to toggle on/off the raw code."></form>''')<jupyter_output><empty_output><jupyter_text>Import necessary modules<jupyter_code>#System modules
import os
import tkinter as tk
from tkinter.filedialog import askopenfilename

#Third party modules
import vpython as vp

#Custom modules
#import Sitchensis<jupyter_output><empty_output><jupyter_text>Test vPython<jupyter_code>scene = vp.canvas()
vp.sphere()<jupyter_output><empty_output><jupyter_text>Test importing the data from an excel file on a local machine<jupyter_code>fileName = r"C:\Users\rdk10\Dropbox\KramerPhDBackup\FinalTreesRaw\HohT1_15Feb2018.xlsx"
treeName = "Testing"
treeData = pd.read_excel(fileName, sheet_name = None)
treeData<jupyter_output><empty_output><jupyter_text>Now I need to import a custom function to do something with these data Lastly, export the data in a new format<jupyter_code>date = pd.Timestamp("today").strftime("%d%b%Y").lstrip('0')
 date
 #writer = pd.ExcelWriter('{0}_{1}.xlsx'.format(treeName, date), engine='xlsxwriter')
import os, sys
cwd = os.getcwd()
cwd
 #treeData['segments'].to_excel(writer, sheet_name = 'trunk', index = False)
 #writer.save()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14367816091954022, 'fraction_numerical': 0.007662835249042145, 'mean_word_length': 7.803370786516854, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '40381', 'license': 'MIT', 'n_tokens_mistral': 571, 'n_tokens_neox': 551, 'n_words': 116, 'path': 'sitchensis/TreeMappingVizTest.ipynb', 'repo_name': 'northcoastmountainrat/Sitchensis', 'size': '1566'}