broken
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f include/argparse/argparse.hpp ]; then
|
||||
mkdir -p include/argparse
|
||||
curl https://raw.githubusercontent.com/p-ranav/argparse/997da9255618311d1fcb0135ce86022729d1f1cb/include/argparse/argparse.hpp \
|
||||
-o include/argparse/argparse.hpp
|
||||
fi
|
||||
@@ -1,9 +1,20 @@
|
||||
from matplotlib import pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
with open("../pop-balances-out.csv", "r") as file:
|
||||
results = pd.read_csv(file)
|
||||
with open("../pop-balances-out-inheritance.csv", "r") as file:
|
||||
pop_inheritance_results = pd.read_csv(file)
|
||||
|
||||
# balance avg
|
||||
plt.hist(results.loc[:,"Balance"].sort_values(), bins=30)
|
||||
plt.hist(pop_inheritance_results.loc[:,"Balance"].sort_values(), bins=30)
|
||||
plt.title("Wealth distribution (Inheritance)")
|
||||
plt.xlabel("dollarydoos")
|
||||
plt.ylabel("participants")
|
||||
plt.show()
|
||||
|
||||
with open("../pop-balances-out-redist.csv", "r") as file:
|
||||
pop_redist_results = pd.read_csv(file)
|
||||
|
||||
plt.hist(pop_redist_results.loc[:,"Balance"].sort_values(), bins=30)
|
||||
plt.title("Wealth distribution (")
|
||||
plt.xlabel("dollarydoos")
|
||||
plt.ylabel("participants")
|
||||
plt.show()
|
||||
|
||||
Reference in New Issue
Block a user