<jupyter_start><jupyter_text>Data Loading<jupyter_code>fname = os.path.abspath("../data/poseidon-all.csv")
df = pd.read_csv(fname)
df.drop(columns=["Unnamed: 0"], inplace=True)
df.head()
for i, iw in enumerate(df.UWI.unique()):
    l = lasio.LASFile()
    
    for c in df[df.UWI==iw].columns:
        l.add_curve('DEPTH', df[df.UWI==iw]["Depth"].values)
        l.add_curve(c, df[df.UWI==iw][c].values)
        
    fname = os.path.abspath("../data/poseidon-"+str(i)+".las")
    with open(fname, mode="w") as f: 
        l.write(f)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20818505338078291, 'fraction_numerical': 0.0017793594306049821, 'mean_word_length': 3.6147540983606556, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '140210', 'license': 'MIT', 'n_tokens_mistral': 249, 'n_tokens_neox': 239, 'n_words': 32, 'path': 'notebook/dataframe-to-las.ipynb', 'repo_name': 'roliveira/lithograph', 'size': '562'}