<jupyter_start><jupyter_text>year_dd.shape[0].compute() path = os.path.join(folderpath,str(start),onemb)print(path) year_dd.to_parquet(path,engine='pyarrow') year_dd.to_parquet('googlebooks-eng-all-5gram-20120701-co_1995_2005_pyarrow',engine='pyarrow')<jupyter_code>def split_data_year_wise(startyear,stopyear,yearsetp,basepath):
    print("start time")
    time_exe()
    stopyear= stopyear+1
    for i in range(startyear, stopyear, yearsetp):
        year_dd = dd[dd[5]==i]
        path = os.path.join(basepath,str(i),onemb)
        if not os.path.exists(path):
            os.makedirs(path)
        print("{}=>{}".format(i,path))
        year_dd.to_parquet(path,engine='pyarrow')
        #year_dd.to_csv(path)
    print("finisheed time")
    time_exe()<jupyter_output><empty_output><jupyter_text>def split_data_year_wise(startyear,stopyear,yearsetp,basepath):    print('im in')    print(startyear)    print(stopyear)    for i in range(startyear, stopyear, yearsetp):        print(i)<jupyter_code>split_data_year_wise(start,end,step,folderpath)<jupyter_output>start time
2020-07-03 11:48:33
1995=>yearwise\1995\googlebooks-eng-all-5gram-20120701-xq
1996=>yearwise\1996\googlebooks-eng-all-5gram-20120701-xq
1997=>yearwise\1997\googlebooks-eng-all-5gram-20120701-xq
1998=>yearwise\1998\googlebooks-eng-all-5gram-20120701-xq
1999=>yearwise\1999\googlebooks-eng-all-5gram-20120701-xq
2000=>yearwise\2000\googlebooks-eng-all-5gram-20120701-xq
2001=>yearwise\2001\googlebooks-eng-all-5gram-20120701-xq
2002=>yearwise\2002\googlebooks-eng-all-5gram-20120701-xq
2003=>yearwise\2003\googlebooks-eng-all-5gram-20120701-xq
2004=>yearwise\2004\googlebooks-eng-all-5gram-20120701-xq
2005=>yearwise\2005\googlebooks-eng-all-5gram-20120701-xq
finisheed time
2020-07-03 11:48:33
{'fraction_non_alphanumeric': 0.14787535410764874, 'fraction_numerical': 0.13314447592067988, 'mean_word_length': 5.614232209737827, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 20, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '322025', 'license': 'Apache-2.0', 'n_tokens_mistral': 855, 'n_tokens_neox': 698, 'n_words': 61, 'path': 'small_ds/n5grmYearWiseSplit_dask_working-Copy1.ipynb', 'repo_name': 'numberonewastefellow/projects', 'size': '1765'}