Skip to content

Commit a05de8f

Browse files
authored
py3 prints
1 parent cd3b360 commit a05de8f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: contrib/stats/sagecell-stats.ipynb

+8-8
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
" try:\n",
5555
" lines.append(parseline(s))\n",
5656
" except Exception as E:\n",
57-
" #print i, E\n",
57+
" #print(i, E)\n",
5858
" errors+=1\n",
5959
"gc.enable()\n",
60-
"print \"Errors: \",errors\n",
61-
"print \"Skipped: \",skipped\n",
62-
"print \"Processed: \",i"
60+
"print(\"Errors: \",errors)\n",
61+
"print(\"Skipped: \",skipped)\n",
62+
"print(\"Processed: \",i)"
6363
],
6464
"language": "python",
6565
"metadata": {},
@@ -158,9 +158,9 @@
158158
"collapsed": false,
159159
"input": [
160160
"notsagecell=d[~d.url.str.contains('^(http|https)://[^.]*.sagemath.org')]\n",
161-
"print len(notsagecell)\n",
161+
"print(len(notsagecell))\n",
162162
"c=notsagecell.groupby('url').count().sort('url',ascending=False).take([0],axis=1)\n",
163-
"print len(c)\n",
163+
"print(len(c))\n",
164164
"c[:500]"
165165
],
166166
"language": "python",
@@ -182,7 +182,7 @@
182182
"collapsed": false,
183183
"input": [
184184
"daily=d['type'].resample('1D',how='count')\n",
185-
"print daily.describe()\n",
185+
"print(daily.describe())\n",
186186
"daily.plot(kind='kde')"
187187
],
188188
"language": "python",
@@ -221,4 +221,4 @@
221221
"metadata": {}
222222
}
223223
]
224-
}
224+
}

0 commit comments

Comments
 (0)