<commit_before>import pandas
import matplotlib.pyplot as plt

ENERGYFORMS = ['Oil', 'Gas', 'Coal', 'Nuclear', 'Hydro']
NUM_ENERGYFORMS = len(ENERGYFORMS)

energyInfo = pandas.read_csv('../resources/EnergyMixGeo.csv')
print energyInfo.describe()

reducedEnergyInfo = energyInfo[ENERGYFORMS]

plt.figure(1)
plt.boxplot(reducedEnergyInfo.values, sym='')
plt.show()<commit_msg>fixed energyStatistics and added subplots<commit_after>
import pandas
import matplotlib.pyplot as plt



ENERGYFORMS = ['Oil', 'Gas', 'Coal', 'Nuclear', 'Hydro']
NUM_ENERGYFORMS = len(ENERGYFORMS)

energyInfo = pandas.read_csv('../resources/EnergyMixGeo.csv')
print energyInfo.describe()

energyFormList = list(energyInfo.columns.values)[1:-2]
reducedEnergyInfo = energyInfo[ENERGYFORMS]

plt.figure("Energyconsumption by energyform in seperate subboxplots")
i = 0
for energyForm in reducedEnergyInfo:
	i += 1
	plt.subplot(1, 5, i)
	plt.xlabel(energyForm)
	plt.boxplot(energyInfo[energyForm].values, sym='')
	plt.grid(True)

plt.figure("Energyconsumption Energyconsumption by energyform in one plot")
plt.boxplot(reducedEnergyInfo.values, sym='')
plt.xticks(range(1, NUM_ENERGYFORMS+1), ENERGYFORMS)
plt.show()
{'fraction_non_alphanumeric': 0.13440405748098055, 'fraction_numerical': 0.0076077768385460695, 'mean_word_length': 7.165517241379311, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2128252', 'n_tokens_mistral': 473, 'n_tokens_neox': 409, 'n_words': 84}