Spaces:
Sleeping
Sleeping
Commit
·
0433b53
1
Parent(s):
fcaa886
cw2.py
CHANGED
|
@@ -55,6 +55,7 @@ def get_visitor_browsers(data):
|
|
| 55 |
data['visitor_browser'].value_counts().plot(kind='bar')
|
| 56 |
plt.xlabel("Visitor Browsers")
|
| 57 |
plt.ylabel("Frequency")
|
|
|
|
| 58 |
return fig
|
| 59 |
|
| 60 |
|
|
@@ -124,7 +125,7 @@ def also_like_graph(data, doc_uuid, visitor_uuid, ascending):
|
|
| 124 |
dot.node(str(row[1]), str(row[1]))
|
| 125 |
dot.edge(str(row[0]), str(row[1]))
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
dot.render('output.dot').replace('\\', '/')
|
| 130 |
|
|
|
|
| 55 |
data['visitor_browser'].value_counts().plot(kind='bar')
|
| 56 |
plt.xlabel("Visitor Browsers")
|
| 57 |
plt.ylabel("Frequency")
|
| 58 |
+
plt.tight_layout()
|
| 59 |
return fig
|
| 60 |
|
| 61 |
|
|
|
|
| 125 |
dot.node(str(row[1]), str(row[1]))
|
| 126 |
dot.edge(str(row[0]), str(row[1]))
|
| 127 |
|
| 128 |
+
print(dot.source)
|
| 129 |
|
| 130 |
dot.render('output.dot').replace('\\', '/')
|
| 131 |
|