Skip to content

Commit

Permalink
Fixing CSV Calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tirth-Thakkar committed Jun 1, 2024
1 parent b94d4ef commit 47e2424
Show file tree
Hide file tree
Showing 906 changed files with 31,276 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _data/ApesSurvivorship.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def prepare_data(csv_file):
# Grouping the Data by the Type (Species, Breed, Gender, etc.)
for type_name, group, in df_expanded.groupby('Type'):
# Construct the path to the output file
output_file = os.path.join(output_dir, f"{type_name}.csv")
sanitized_type_name = type_name.replace('/', '_').replace('\\', '_')
output_file = os.path.join(output_dir, f"{sanitized_type_name}.csv")

# Save the grouped data to a new CSV file
group.to_csv(output_file, index=False)
Expand Down
9 changes: 9 additions & 0 deletions _data/CSV_Data/Alsatian_Collie X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Age of Death,Type
4.325804244,Alsatian/Collie X
9.533082364,Alsatian/Collie X
12.51460187,Alsatian/Collie X
11.17043121,Alsatian/Collie X
12.75005704,Alsatian/Collie X
10.72130961,Alsatian/Collie X
10.20670773,Alsatian/Collie X
12.77195984,Alsatian/Collie X
5 changes: 5 additions & 0 deletions _data/CSV_Data/American Akita.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Age of Death,Type
0.958133698,American Akita
5.004677162,American Akita
13.45927447,American Akita
12.88706366,American Akita
2 changes: 2 additions & 0 deletions _data/CSV_Data/American Blue Gascon Hound.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
13.35785991,American Blue Gascon Hound
8 changes: 8 additions & 0 deletions _data/CSV_Data/American Bull Dog.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Age of Death,Type
5.902806297,American Bull Dog
5.001939311,American Bull Dog
11.906799,American Bull Dog
12.64328086,American Bull Dog
9.593429158,American Bull Dog
12.10392425,American Bull Dog
11.7562172,American Bull Dog
6 changes: 6 additions & 0 deletions _data/CSV_Data/American Bull Terrier X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Age of Death,Type
13.76317591,American Bull Terrier X
12.50091262,American Bull Terrier X
14.5433493,American Bull Terrier X
10.42014602,American Bull Terrier X
12.91991786,American Bull Terrier X
5 changes: 5 additions & 0 deletions _data/CSV_Data/American Bull Terrier.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Age of Death,Type
8.027264431,American Bull Terrier
9.872575861,American Bull Terrier
2.017681953,American Bull Terrier
5.987565594,American Bull Terrier
7 changes: 7 additions & 0 deletions _data/CSV_Data/American Bull dog X SBT.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Age of Death,Type
1.084188912,American Bull dog X SBT
1.563198722,American Bull dog X SBT
1.327857632,American Bull dog X SBT
4.446155601,American Bull dog X SBT
9.429158111,American Bull dog X SBT
8.558521561,American Bull dog X SBT
30 changes: 30 additions & 0 deletions _data/CSV_Data/American Bulldog X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Age of Death,Type
0.728154232,American Bulldog X
2.001254848,American Bulldog X
4.514601871,American Bulldog X
5.002053388,American Bulldog X
5.642596395,American Bulldog X
7.000570386,American Bulldog X
7.827401323,American Bulldog X
9.437257586,American Bulldog X
2.212069359,American Bulldog X
15.00057039,American Bulldog X
11.11728097,American Bulldog X
2.316221766,American Bulldog X
10.82692131,American Bulldog X
12.90896646,American Bulldog X
1.976728268,American Bulldog X
2.480492813,American Bulldog X
0.752908966,American Bulldog X
4.440793977,American Bulldog X
5.984827744,American Bulldog X
8.960985626,American Bulldog X
9.73853525,American Bulldog X
14.67750399,American Bulldog X
5.98220397,American Bulldog X
6.743326489,American Bulldog X
8.427104723,American Bulldog X
15.44969199,American Bulldog X
14.7158339,American Bulldog X
2.00673055,American Bulldog X
12.09034908,American Bulldog X
117 changes: 117 additions & 0 deletions _data/CSV_Data/American Bulldog.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
Age of Death,Type
6.776180698,American Bulldog
11.23613963,American Bulldog
10.58441707,American Bulldog
1.423568332,American Bulldog
1.505703856,American Bulldog
1.596167009,American Bulldog
1.678188455,American Bulldog
1.779488935,American Bulldog
2.192904403,American Bulldog
2.28599133,American Bulldog
2.505019393,American Bulldog
2.784280173,American Bulldog
3.186744239,American Bulldog
3.383869496,American Bulldog
4.320328542,American Bulldog
4.533766826,American Bulldog
4.563997262,American Bulldog
4.689824321,American Bulldog
4.851471595,American Bulldog
5.335957107,American Bulldog
6.25039927,American Bulldog
6.368240931,American Bulldog
6.417408168,American Bulldog
7.498859229,American Bulldog
8.424366872,American Bulldog
8.574834588,American Bulldog
7.936915355,American Bulldog
10.36812685,American Bulldog
3.717887292,American Bulldog
7.241501255,American Bulldog
7.315423226,American Bulldog
14.39824321,American Bulldog
10.61179557,American Bulldog
6.198494182,American Bulldog
9.76306183,American Bulldog
3.088181611,American Bulldog
8.457107004,American Bulldog
9.004677162,American Bulldog
9.62616929,American Bulldog
13.99863107,American Bulldog
15.49623546,American Bulldog
13.46189824,American Bulldog
10.16563997,American Bulldog
1.429158111,American Bulldog
4.435318275,American Bulldog
4.51186402,American Bulldog
7.000570386,American Bulldog
7.8275154,American Bulldog
8.306525211,American Bulldog
8.68708647,American Bulldog
8.708989277,American Bulldog
9.658909423,American Bulldog
9.743896874,American Bulldog
10.97045403,American Bulldog
11.12103582,American Bulldog
11.15925165,American Bulldog
11.4002966,American Bulldog
11.51540041,American Bulldog
11.61932466,American Bulldog
12.70362765,American Bulldog
12.84040611,American Bulldog
13.22370522,American Bulldog
14.40919462,American Bulldog
0.405087839,American Bulldog
6.921172713,American Bulldog
8.216290212,American Bulldog
9.511293634,American Bulldog
7.649441022,American Bulldog
1.675450605,American Bulldog
8.752794889,American Bulldog
10.49691992,American Bulldog
9.87816564,American Bulldog
10.99235683,American Bulldog
7.999885923,American Bulldog
12.59958932,American Bulldog
5.117043121,American Bulldog
3.389345197,American Bulldog
10.06433949,American Bulldog
3.687770933,American Bulldog
9.746634725,American Bulldog
8.824093087,American Bulldog
13.08133698,American Bulldog
7.975359343,American Bulldog
9.393451974,American Bulldog
6.554414784,American Bulldog
10.37371663,American Bulldog
11.7507415,American Bulldog
9.859000684,American Bulldog
0.194273329,American Bulldog
14.3434862,American Bulldog
9.683664157,American Bulldog
8.010837326,American Bulldog
11.89322382,American Bulldog
1.697467488,American Bulldog
6.461327858,American Bulldog
9.475587497,American Bulldog
10.42562172,American Bulldog
0.498174766,American Bulldog
7.321013005,American Bulldog
5.401779603,American Bulldog
9.382614648,American Bulldog
11.80549852,American Bulldog
8.306525211,American Bulldog
9.932922656,American Bulldog
11.06354095,American Bulldog
6.201461138,American Bulldog
10.7103582,American Bulldog
5.3908282,American Bulldog
10.49680584,American Bulldog
8.449007529,American Bulldog
6.239561944,American Bulldog
4.005475702,American Bulldog
11.01437372,American Bulldog
9.708418891,American Bulldog
2.964978325,American Bulldog
3.895847593,American Bulldog
2 changes: 2 additions & 0 deletions _data/CSV_Data/American Foxhound.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
5.492014602,American Foxhound
8 changes: 8 additions & 0 deletions _data/CSV_Data/American Mastiff X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Age of Death,Type
12.29295003,American Mastiff X
11.00068446,American Mastiff X
12.32580424,American Mastiff X
12.47627196,American Mastiff X
11.38672142,American Mastiff X
11.54266484,American Mastiff X
11.80549852,American Mastiff X
2 changes: 2 additions & 0 deletions _data/CSV_Data/American Mastiff.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
8.555669633,American Mastiff
6 changes: 6 additions & 0 deletions _data/CSV_Data/American Staffordshire Terrier X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Age of Death,Type
5.785078713,American Staffordshire Terrier X
10.66107689,American Staffordshire Terrier X
7.15389003,American Staffordshire Terrier X
8.40782569,American Staffordshire Terrier X
11.27720739,American Staffordshire Terrier X
6 changes: 6 additions & 0 deletions _data/CSV_Data/American Staffordshire Terrier.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Age of Death,Type
11.02521104,American Staffordshire Terrier
9.251688373,American Staffordshire Terrier
13.89459274,American Staffordshire Terrier
2.436573123,American Staffordshire Terrier
12.22724162,American Staffordshire Terrier
2 changes: 2 additions & 0 deletions _data/CSV_Data/American_British Bull dog.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
8.911704312,American/British Bull dog
3 changes: 3 additions & 0 deletions _data/CSV_Data/Anatolian Karabash.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Age of Death,Type
10.00125485,Anatolian Karabash
13.34417066,Anatolian Karabash
3 changes: 3 additions & 0 deletions _data/CSV_Data/Anatolian Shepherd.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Age of Death,Type
0.583048141,Anatolian Shepherd
6.757015743,Anatolian Shepherd
8 changes: 8 additions & 0 deletions _data/CSV_Data/Australian Cattle Dog.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Age of Death,Type
10.19301848,Australian Cattle Dog
13.42630618,Australian Cattle Dog
14.51882272,Australian Cattle Dog
17.00467716,Australian Cattle Dog
8.999315537,Australian Cattle Dog
12.74184349,Australian Cattle Dog
14.03684691,Australian Cattle Dog
3 changes: 3 additions & 0 deletions _data/CSV_Data/Australian Kelpie.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Age of Death,Type
15.91786448,Australian Kelpie
15.45790554,Australian Kelpie
2 changes: 2 additions & 0 deletions _data/CSV_Data/Australian Mini Labradoodle.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
4.648756559,Australian Mini Labradoodle
2 changes: 2 additions & 0 deletions _data/CSV_Data/Australian Sheepdog.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
14.45847593,Australian Sheepdog
3 changes: 3 additions & 0 deletions _data/CSV_Data/Australian Shepherd Dog.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Age of Death,Type
9.782340862,Australian Shepherd Dog
13.88626512,Australian Shepherd Dog
6 changes: 6 additions & 0 deletions _data/CSV_Data/Australian Shepherd.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Age of Death,Type
14.05612594,Australian Shepherd
15.27983117,Australian Shepherd
15.42231348,Australian Shepherd
12.60232717,Australian Shepherd
9.407141227,Australian Shepherd
6 changes: 6 additions & 0 deletions _data/CSV_Data/Australian Terrier.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Age of Death,Type
16.83219256,Australian Terrier
15.70978782,Australian Terrier
15.73169062,Australian Terrier
13.00205339,Australian Terrier
12.64054301,Australian Terrier
2 changes: 2 additions & 0 deletions _data/CSV_Data/BASSET _ DASCHUND CROSSBREED.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
12.10392425,BASSET / DASCHUND CROSSBREED
3 changes: 3 additions & 0 deletions _data/CSV_Data/BEDLINGTON X WIPPET.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Age of Death,Type
1.59057723,BEDLINGTON X WIPPET
0.34770705,BEDLINGTON X WIPPET
2 changes: 2 additions & 0 deletions _data/CSV_Data/BELGIAN SHEEPDOG CROSS.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
5.073237509,BELGIAN SHEEPDOG CROSS
2 changes: 2 additions & 0 deletions _data/CSV_Data/BELGIAN SHEPARD.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
12.38318503,BELGIAN SHEPARD
2 changes: 2 additions & 0 deletions _data/CSV_Data/BICHON FRIS.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
12.99980902,BICHON FRIS
4 changes: 4 additions & 0 deletions _data/CSV_Data/BORDER COLLIE X SAMOYED.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Age of Death,Type
13.6590235,BORDER COLLIE X SAMOYED
12.38877481,BORDER COLLIE X SAMOYED
12.7911248,BORDER COLLIE X SAMOYED
4 changes: 4 additions & 0 deletions _data/CSV_Data/BOXER X STAFFORDSHIRE.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Age of Death,Type
4.407939767,BOXER X STAFFORDSHIRE
3.293634497,BOXER X STAFFORDSHIRE
3.425051335,BOXER X STAFFORDSHIRE
2 changes: 2 additions & 0 deletions _data/CSV_Data/BOXER_ENG BULL TERRIER.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
12.47364819,BOXER/ENG BULL TERRIER
2 changes: 2 additions & 0 deletions _data/CSV_Data/BRAZILIAN PRESSA.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
13.60700433,BRAZILIAN PRESSA
2 changes: 2 additions & 0 deletions _data/CSV_Data/BSSET X SHEPHERD.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
12.34770705,BSSET X SHEPHERD
2 changes: 2 additions & 0 deletions _data/CSV_Data/BULL TERRIER ENGLISH.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
13.96840064,BULL TERRIER ENGLISH
2 changes: 2 additions & 0 deletions _data/CSV_Data/BULLDOG AMERICAN.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
9.719256217,BULLDOG AMERICAN
10 changes: 10 additions & 0 deletions _data/CSV_Data/BULLDOG X WESTIE.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Age of Death,Type
12.04095368,BULLDOG X WESTIE
12.0792836,BULLDOG X WESTIE
11.90953685,BULLDOG X WESTIE
12.03000228,BULLDOG X WESTIE
12.18332193,BULLDOG X WESTIE
12.76648414,BULLDOG X WESTIE
13.21275382,BULLDOG X WESTIE
11.58384668,BULLDOG X WESTIE
14.01768195,BULLDOG X WESTIE
4 changes: 4 additions & 0 deletions _data/CSV_Data/BULLMASTIFF CROSS DOG DE BORDEUX.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Age of Death,Type
11.58099475,BULLMASTIFF CROSS DOG DE BORDEUX
12.66244581,BULLMASTIFF CROSS DOG DE BORDEUX
13.24298426,BULLMASTIFF CROSS DOG DE BORDEUX
2 changes: 2 additions & 0 deletions _data/CSV_Data/Basenji X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
15.07460643,Basenji X
4 changes: 4 additions & 0 deletions _data/CSV_Data/Basset Fauve De Bretagne.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Age of Death,Type
4.468058407,Basset Fauve De Bretagne
14.8664157,Basset Fauve De Bretagne
11.91501255,Basset Fauve De Bretagne
6 changes: 6 additions & 0 deletions _data/CSV_Data/Basset Griffon Vendeen Grand.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Age of Death,Type
14.65833904,Basset Griffon Vendeen Grand
10.60358202,Basset Griffon Vendeen Grand
13.00193931,Basset Griffon Vendeen Grand
10.60084417,Basset Griffon Vendeen Grand
15.42208533,Basset Griffon Vendeen Grand
2 changes: 2 additions & 0 deletions _data/CSV_Data/Basset Griffon Vendeen.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
8.134040611,Basset Griffon Vendeen
2 changes: 2 additions & 0 deletions _data/CSV_Data/Basset Hound X.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Age of Death,Type
8.019164956,Basset Hound X
Loading

0 comments on commit 47e2424

Please sign in to comment.