Skip to content

Commit b939165

Browse files
ARC AcademyARC Academy
ARC Academy
authored and
ARC Academy
committed
Added pandas
1 parent fda88a6 commit b939165

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
*.meta
77
data/cifar-10-batches-py/*
88
*.pth
9-
pandas_bench.py
9+
pandas_bench.py
10+
*.rdb

graphs/pandas.png

36.9 KB
Loading

intelPythonBenchmarksGraphs.py

+16
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,21 @@
5959
plt.xlabel('Time in seconds')
6060
plt.title('PyTorch Benchmarks with Intel Python')
6161
plt.savefig('pytorch.png')
62+
if args['show'] == "true":
63+
plt.show()
64+
65+
df_pan = df.loc[df['Test'] == 'Pandas']
66+
67+
y_data = [float(df_pan['Intel']), float(df_pan['Normal'])]
68+
plt.figure(figsize=(20, 9), dpi=100)
69+
graph = plt.barh(['Intel Python', 'Python'], y_data)
70+
for index, value in enumerate(y_data):
71+
plt.text(value, index, str(value))
72+
graph[0].set_color('g')
73+
graph[1].set_color('r')
74+
plt.ylabel('Version of Python')
75+
plt.xlabel('Time in seconds')
76+
plt.title('Pandas Benchmarks with Intel Python')
77+
plt.savefig('pandas.png')
6278
if args['show'] == "true":
6379
plt.show()

pandas_bench_n.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pandas as pd
2+
3+
pd.read_csv('match_data_version1.csv')

0 commit comments

Comments
 (0)