<commit_before>'''
Description
'''
__filename__ = "plot.ages.panda.py"
__date__ = "20170309"
__author__ = "<NAME><<EMAIL>>"

import sys

try:
	import pandas as pd
	import matplotlib.pyplot as pt
except ImportError as oie:
	s_msg="Requires package pandas."
	raise Exception( str(oie) + s_msg )
#end try, except

def mymain( s_ages_file ):
	df = pd.read_csv( "test.nbadjust.bn2_age_counts_by_gen.csv", index_col='generation', sep="\t" )
	df.plot( kind='bar', stacked=True )	
	pt.show()
	return
#end mymain

if __name__ == "__main__":
	import argparse	as ap 
	LS_ARGS_SHORT=[ "-f" ] 
	LS_ARGS_LONG=[ "--agesfile" ] 
	LS_ARGS_HELP=[ "file output by simiulatuo run with extension, \"_age_counts_by_gen.csv\""]

	o_parser=ap.ArgumentParser()

	o_arglist=o_parser.add_argument_group( "args" )

	i_total_nonopt=len( LS_ARGS_SHORT )

	for idx in range( i_total_nonopt ):
		o_arglist.add_argument( \
				LS_ARGS_SHORT[ idx ],
				LS_ARGS_LONG[ idx ],<commit_msg>bug fix in plot.ages.panda.py<commit_after>'''
Description
'''
__filename__ = "plot.ages.panda.py"
__date__ = "20170309"
__author__ = "<NAME><<EMAIL>>"

import sys

try:
	import pandas as pd
	import matplotlib.pyplot as pt
except ImportError as oie:
	s_msg="Requires package pandas."
	raise Exception( str(oie) + s_msg )
#end try, except

def mymain( s_ages_file ):
	df = pd.read_csv( s_ages_file, index_col='generation', sep="\t" )
	df.plot( kind='bar', stacked=True )	
	pt.show()
	return
#end mymain

if __name__ == "__main__":
	import argparse	as ap 

	LS_ARGS_SHORT=[ "-f" ] 
	LS_ARGS_LONG=[ "--agesfile" ] 
	LS_ARGS_HELP=[ "file output by simiulatuo run with extension, \"_age_counts_by_gen.csv\""]

	o_parser=ap.ArgumentParser()

	o_arglist=o_parser.add_argument_group( "args" )

	i_total_nonopt=len( LS_ARGS_SHORT )

	for idx in range( i_total_nonopt ):
		o_arglist.add_argument( \
				LS_ARGS_SHORT[ idx ],
				LS_ARGS_LONG[ idx ],
{'fraction_non_alphanumeric': 0.1343204653622422, 'fraction_numerical': 0.008989952406134321, 'mean_word_length': 4.7859327217125385, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, '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}}
{'dir': 'git-commits-cleaned', 'id': '1998314', 'n_tokens_mistral': 800, 'n_tokens_neox': 744, 'n_words': 169}