Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

logreg_validation_2.2_chunksize_10_conf_matrix_FP.txt 18 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
  1. "ex.groupby(level='A').agg(lambda x: x.index.get_level_values(1).nunique())
  2. pd.concat(map(pd.DataFrame, iter(d.values())), keys=list(d.keys())).stack().unstack(0)
  3. sum(1 for i, j in zip(a, b) if i != j)
  4. d = {(a.lower(), b): v for (a, b), v in list(d.items())}
  5. list_.sort(key=lambda x: [x[0], len(x[1]), x[1]])
  6. s.strip()
  7. s = s.lstrip()
  8. s = s.rstrip()
  9. s = s.strip(' \t\n\r')"
  10. "Task.objects.exclude(prerequisites__status__in=['A', 'P', 'F'])
  11. root.configure(background='black')
  12. numpy.array([(key, val) for key, val in result.items()], dtype)
  13. pd.concat([df_1, df_2.sort_values('y')])
  14. re.sub('(.*)</div>', '\\1</bad>', s)
  15. print(max(d, key=lambda x: (d[x]['salary'], d[x]['bonus'])))
  16. Book.objects.filter(author__id=1).filter(author__id=2)
  17. re.compile('XYZ', re.IGNORECASE).split('fooxyzbar')
  18. [sum(map(int, s)) for s in example.split()]"
  19. "c.decode('unicode_escape')
  20. pd.melt(x, id_vars=['farm', 'fruit'], var_name='year', value_name='value')
  21. default_data['item3'] = 3
  22. default_data.update({'item3': 3, })
  23. default_data.update({'item4': 4, 'item5': 5, })
  24. l[:3] + l[-3:]
  25. df = df.reset_index(drop=True)
  26. [a[x].append(b[x]) for x in range(3)]
  27. os.path.realpath(path)"
  28. "if ('key1' in dict):
  29. pass
  30. if (key in d):
  31. pass
  32. Blog.objects.filter(pk__in=[1, 4, 7])
  33. f = open('test/test.pdf', 'rb')
  34. format(12345678.46, ',').replace(',', ' ').replace('.', ',')
  35. pd.merge(frame_1, frame_2, left_on='county_ID', right_on='countyid')
  36. np.isnan(a).sum() / np.prod(a.shape)"
  37. "lst.sort(key=lambda x: x[2], reverse=True)
  38. indices = [i for i, x in enumerate(my_list) if x == 'whatever']
  39. subprocess.call('grep -r PASSED *.log | sort -u | wc -l', shell=True)
  40. len(my_text) - len(my_text.rstrip('?'))
  41. df[df.columns[1:]].replace('[\\$,]', '', regex=True).astype(float)
  42. df1.merge(df2, how='left', on='word')
  43. print(''.join(''.join(i) for i in zip(a2, a1)) + a[-1] if len(a) % 2 else '')
  44. root.attributes('-topmost', True)
  45. root.lift()"
  46. "re.findall('\\d|\\d,\\d\\)', '6,7)')
  47. input('Press Enter to continue...')
  48. """"""ABC"""""".encode('hex')
  49. db.Doc.update({'_id': b['_id']}, {'$set': {'geolocCountry': myGeolocCountry}})
  50. re.sub('l+', 'l', 'lollll')
  51. rows = soup.findAll('tr')[4::5]
  52. plt.gca().invert_xaxis()
  53. plt.gca().invert_yaxis()
  54. pd.concat([GOOG, AAPL], keys=['GOOG', 'AAPL'], axis=1)"
  55. "i = int(s, 16)
  56. int('0xff', 16)
  57. int('FFFF', 16)
  58. ast.literal_eval('0xdeadbeef')
  59. int('deadbeef', 16)
  60. os.system('screencapture screen.png')
  61. driver.set_window_size(1400, 1000)
  62. unicodedata.normalize('NFKD', 'm\xfasica').encode('ascii', 'ignore')
  63. pandas.concat([df1, df2]).drop_duplicates().reset_index(drop=True)"
  64. "b = {a[i]: a[i + 1] for i in range(0, len(a), 2)}
  65. len(set(a)) == len(a)
  66. print(hashlib.md5(open(full_path, 'rb').read()).hexdigest())
  67. sorted(list(data.items()), key=lambda x: x[1][0])
  68. """""""""""".join(x.upper() if random.randint(0, 1) else x for x in s)
  69. os.system('GREPDB=""echo 123""; /bin/bash -c ""$GREPDB""')
  70. os.system('/bin/bash -c ""echo hello world""')
  71. getattr(test, a_string)
  72. Image.open('pathToFile').show()"
  73. "weekly = [sum(visitors[x:x + 7]) for x in range(0, len(daily), 7)]
  74. del d[key]
  75. {i: a[i] for i in a if (i != 0)}
  76. lol.pop('hello')
  77. del r[key]
  78. np.linalg.solve(np.dot(a.T, a), np.dot(a.T, b))
  79. pd.concat([df.drop('b', axis=1), pd.DataFrame(df['b'].tolist())], axis=1)
  80. for i in range(0, 10, 2):
  81. pass"
  82. " pass
  83. [{'content': x['content'].lower()} for x in messages]
  84. """""" """""".join(my_list)
  85. re.sub('(http://\\S+|\\S*[^\\w\\s]\\S*)', '', a)
  86. str(n) == str(n)[::-1]
  87. ftp.storbinary('STOR myfile.txt', open('myfile.txt', 'rb'))
  88. re.sub('.*I', 'I', stri)
  89. int('1,000,000'.replace(',', ''))
  90. pd.merge(df1, df2, left_index=True, right_index=True, how='outer')"
  91. "'Hello\n\n\n'.rstrip('\n')
  92. re.findall('.{,16}\\b', text)
  93. [[X[i][j] for j in range(len(X[i]))] for i in range(len(X))]
  94. '\xd0\xbc\xd0\xb0\xd1\x80\xd0\xba\xd0\xb0'.encode('latin-1')
  95. df.groupby((df.a == 'B').shift(1).fillna(0).cumsum())
  96. urllib.request.urlretrieve('http://search.twitter.com/search.json?q=hi', 'hi.json')
  97. numpy.where((x == 0))[0]
  98. sys.stdout.flush()
  99. str(i)"
  100. "str(a)
  101. L.sort(key=operator.itemgetter(1))
  102. print(str(count) + ' ' + str(conv))
  103. df.fillna(method='ffill', inplace=True)
  104. text.config(state=DISABLED)
  105. sum(map(ord, string))
  106. list(itertools.product(*arrays))
  107. '{:,}'.format(value)
  108. locale.setlocale(locale.LC_ALL, 'en_US')"
  109. "results = [item['value'] for item in test_data]
  110. datetime.datetime.now().isoformat()
  111. datetime.datetime.utcnow().isoformat()
  112. df.apply(' '.join, axis=0)
  113. pd.DataFrame(df.values - df2.values, columns=df.columns)
  114. print(open('myfile.txt', 'U').read())
  115. print(line.decode('utf-16-le').split())
  116. file = io.open('data.txt', 'r', encoding='utf-16-le')
  117. s1 = pd.merge(df1, df2, how='inner', on=['user_id'])"
  118. "pd.merge(df1, df2, on=['A', 'B', 'C', 'D'], how='inner')
  119. dict((v, k) for k, v in map.items())
  120. s.decode('unicode_escape')
  121. [int(i) for i in str_list]
  122. map(int, ['1', '2', '3'])
  123. list(map(int, ['1', '2', '3']))
  124. soup.find_all('a', href=re.compile('http://www\\.iwashere\\.com/'))
  125. soup.find_all('a', href=re.compile('^(?!(?:[a-zA-Z][a-zA-Z0-9+.-]*:|//))'))
  126. subprocess.call(['java', '-jar', 'Blender.jar'])"
  127. "no_integers = [x for x in mylist if not isinstance(x, int)]
  128. tree.xpath("".//a[text()='Example']"")[0].tag
  129. """""", """""".join([(str(k) + ' ' + str(v)) for k, v in list(a.items())])
  130. print(set(re.sub('[\x00-\x7f]', '', '\xa3\u20ac\xa3\u20ac')))
  131. print(re.sub('[\x00-\x7f]', '', '\xa3100 is worth more than \u20ac100'))
  132. ast.literal_eval(""{'muffin' : 'lolz', 'foo' : 'kitty'}"")
  133. print(t.decode('unicode_escape'))
  134. print(str.encode('cp1252').decode('utf-8').encode('cp1252').decode('utf-8'))
  135. zip(list_a, list_b)"
  136. "driver.find_element_by_name('<check_box_name>').is_selected()
  137. driver.find_element_by_id('<check_box_id>').is_selected()
  138. [(a if a else 2) for a in [0, 1, 0, 3]]
  139. 'M\\N{AMPERSAND}M\\N{APOSTROPHE}s'.encode().decode('unicode-escape')
  140. 'M\\N{AMPERSAND}M\\N{APOSTROPHE}s'.decode('unicode-escape')
  141. chr(int('fd9b', 16)).encode('utf-8')
  142. print('0x%X' % value)
  143. cleaned = [x for x in your_list if x]
  144. slice(*[(int(i.strip()) if i else None) for i in string_slice.split(':')])"
  145. "zip(it, it, it)
  146. df['x'].str.lower()
  147. jsobj['a']['b']['e'].append({'f': var6, 'g': var7, 'h': var8})
  148. """""""""""".join(lst)
  149. sum(v for v in list(d.values()) if v > 0)
  150. app.run(debug=True)
  151. df.drop(df.index[[1, 3]], inplace=True)
  152. df.apply(lambda x: x.fillna(x.mean()), axis=0)
  153. [o.my_attr for o in my_list]"
  154. "re.findall('TAA(?:[ATGC]{3})+?TAA', seq)
  155. sorted(s, key=float)
  156. hex(65)
  157. a.append(b).reset_index(drop=True)
  158. pd.concat([a, b], ignore_index=True)
  159. [(i, j) for i in range(1, 3) for j in range(1, 5)]
  160. sorted(iter(mydict.items()), key=itemgetter(1), reverse=True)
  161. pd.date_range('1/1/2014', periods=12, freq='BM')
  162. requests.get('https://kennethreitz.com', verify=False)"
  163. """"""""""""".join(list(OrderedDict.fromkeys('aaabcabccd').keys()))
  164. list(set('aaabcabccd'))
  165. """""""""""".join(set('aaabcabccd'))
  166. df.loc[(df.loc[:, (df.dtypes != object)] != 0).any(1)]
  167. br.form.add_file(open(filename), 'text/plain', filename)
  168. all(word in d for word in ['somekey', 'someotherkey', 'somekeyggg'])
  169. subprocess.check_output(['espeak', text], stderr=subprocess.STDOUT)
  170. df.fillna(method='ffill', inplace=True)
  171. print(np.linspace(1, 3, num=4, endpoint=False))"
  172. "fn = os.path.join(os.path.dirname(__file__), 'my_file')
  173. e = next(iter(s))
  174. os.system('dir c:\\')
  175. self.treeview.connect('size-allocate', self.treeview_changed)
  176. 3 in [1, 2, 3]
  177. datetime.datetime.strptime('10/05/2012', '%d/%m/%Y').strftime('%Y-%m-%d')
  178. s = s.replace('\\', '\\\\')
  179. print(proc.communicate()[0])
  180. pd.concat([pd.DataFrame(l) for l in my_list], axis=1).T"
  181. "plt.savefig('test.png', bbox_inches='tight')
  182. (listone + listtwo)
  183. for item in itertools.chain(listone, listtwo):
  184. pass
  185. males = df[(df[Gender] == 'Male') & (df[Year] == 2014)]
  186. print('\\')
  187. df.replace('-', np.nan)
  188. df = df.drop('column_name', 1)
  189. df.drop(df.columns[[0, 1, 3]], axis=1)"
  190. "parser = argparse.ArgumentParser(allow_abbrev=False)
  191. feature3 = [d.get('Feature3') for d in df.dic]
  192. df.loc[gb.groups['foo'], ('A', 'B')]
  193. print('[%s, %s, %s]' % (1, 2, 3))
  194. print('[{0}, {1}, {2}]'.format(1, 2, 3))
  195. [v for k, v in list(my_dict.items()) if 'Date' in k]
  196. """"""{0.month}/{0.day}/{0.year}"""""".format(my_date)
  197. df.drop(('col1', 'a'), axis=1)
  198. df.drop('a', level=1, axis=1)"
  199. "map(int, re.findall('\\d+', s))
  200. os.listdir('/home/username/www/')
  201. os.listdir('path')
  202. pd.concat([distancesDF, datesDF.dates], axis=1)
  203. [x[0] for x in a]
  204. [i[0] for i in a]
  205. re.sub('(?<=[a-z])\\r?\\n', ' ', textblock)
  206. gzip.open('file.gz', 'rt', encoding='utf-8')
  207. set(['a', 'b']).issubset(['b', 'a', 'foo', 'bar'])"
  208. "line.translate(None, '!@#$')
  209. line = re.sub('[!@#$]', '', line)
  210. string.replace('1', '')
  211. a = a.replace(char, '')
  212. a = a.replace(char, '')
  213. line = line.translate(string.maketrans('', ''), '!@#$')
  214. pd.concat([df, pd.get_dummies(df, '', '').astype(int)], axis=1)[order]
  215. [3, 4, 1, 2]
  216. globals()['something'] = 'bob'"
  217. "yourdf.drop(['columnheading1', 'columnheading2'], axis=1, inplace=True)
  218. [s.strip() for s in input().split(',')]
  219. [int(d) for d in str(bin(x))[2:]]
  220. max(len(word) for word in i)
  221. len(max(i, key=len))
  222. os.system(my_cmd)
  223. mylist.sort(key=lambda x: x.lower())
  224. mylist.sort(key=str.lower)
  225. mylist.sort()"
  226. "zip(*list_of_tuples)
  227. pd.merge(y, x, on='k')[['a', 'b', 'y']]
  228. [item.strip() for item in my_string.split(',')]
  229. print((obj.__dict__))
  230. dir()
  231. dir()
  232. window.set_position(Gtk.WindowPosition.CENTER)
  233. plt.rc('font', **{'size': '30'})
  234. df.isnull().values.any()"
  235. "x.reset_index().merge(y, how='left', on='state', sort=False).sort('index')
  236. json.loads(request.POST.get('mydata', '{}'))
  237. list(zip(*((iter([1, 2, 3, 4, 5, 6, 7, 8, 9]),) * 3)))
  238. list(grouper(2, [1, 2, 3, 4, 5, 6, 7]))
  239. [input[i:i + n] for i in range(0, len(input), n)]
  240. keys.sort(key=lambda x: map(int, x.split('.')))
  241. keys.sort(key=lambda x: [int(y) for y in x.split('.')])
  242. img.transpose(2, 0, 1).reshape(3, -1)
  243. df['BrandName'].replace(['ABC', 'AB'], 'A')"
  244. "df.sub(df.mean(axis=1), axis=0)
  245. """""""""""".join([i for i in s if i.isalpha()])
  246. l = (int(x) for x in s.split())
  247. """"""42 0"""""".split()
  248. map(int, '42 0'.split())
  249. [i for i, elem in enumerate(bool_list, 1) if elem]
  250. data.groupby(data['date'].map(lambda x: x.year))
  251. np.in1d(b, a).nonzero()[0]
  252. time.strftime('%l:%M%p %z on %b %d, %Y')"
  253. "l1.sort(key=lambda x: int(x[0]))
  254. sorted([[1, 'mike'], [1, 'bob']])
  255. """"""Abc"""""".translate(maketrans('abcABC', 'defDEF'))
  256. """"""<br/>"""""".join([('%s:: %s' % (key, value)) for key, value in list(d.items())])
  257. self.writer.writerow([str(s).encode('utf-8') for s in row])
  258. os.system('cls')
  259. os.system('clear')
  260. os.system('tcsh your_own_script')
  261. os.system(""zsh -c 'echo $0'"")"
  262. "platform.system()
  263. import platform
  264. platform.release()
  265. print(os.name)
  266. [x for x in my_list if not x.startswith('#')]
  267. """"""Day old bread, 50% sale {0}"""""".format('today')
  268. min(list, key=lambda x: float('inf') if math.isnan(x[1]) else x[1])
  269. a = [(sum(x) / len(x)) for x in zip(*a)]
  270. logging.info('Log message', extra={'app_name': 'myapp'})"
  271. "df.fillna(0)
  272. df.toPandas().to_csv('mycsv.csv')
  273. df.write.csv('mycsv.csv')
  274. sum(x[1] for x in structure)
  275. df.groupby('STNAME')['COUNTY_POP'].agg(lambda x: x.nlargest(3).sum())
  276. datetime.strptime('21/11/06 16:30', '%d/%m/%y %H:%M')
  277. os.path.dirname(os.path.abspath(__file__))
  278. re.sub('(.)', '\\1\\1', text.read(), 0, re.S)
  279. """""""""""".join(('a', 'b', 'c', 'd', 'g', 'x', 'r', 'e'))"
  280. "apple.decode('iso-8859-1').encode('utf8')
  281. df.to_csv('filename.csv', header=False)
  282. print('{0}:<15}}{1}:<15}}{2}:<8}}'.format('1', '2', '3'))
  283. max(ld, key=lambda d: d['size'])
  284. """"""{0}\\w{{2}}b{1}\\w{{2}}quarter"""""".format('b', 'a')
  285. user = models.ForeignKey('User', unique=True)
  286. re.compile('^([^A]*)AA([^A]|AA)*$')
  287. b = np.concatenate((a, a), axis=0)
  288. sorted(l, key=lambda x: x.replace('0', 'Z'))"
  289. "e = root.xpath('.//a[starts-with(text(),""TEXT A"")]')
  290. e = root.xpath('.//a[text()=""TEXT A""]')
  291. c = [b[i] for i in index]
  292. np.dot(a[:, (None)], b[(None), :])
  293. np.outer(a, b)
  294. subprocess.call(['./abc.py', arg1, arg2])
  295. df[['value']].fillna(df.groupby('group').transform('mean'))
  296. re.sub('(.)(?=.)', '\\1-', s)
  297. re.sub('(?<=.)(?=.)', '-', str)"
  298. "print(collections.Counter(s).most_common(1)[0])
  299. float(re.findall('(?:^|_)' + par + '(\\d+\\.\\d*)', dir)[0])
  300. re.findall('[^a]', 'abcd')
  301. print([item for item in dir(adfix) if not item.startswith('__')])
  302. [x[0] for x in rows]
  303. res_list = [x[0] for x in rows]
  304. pd.concat([x] * 5, ignore_index=True)
  305. pd.concat([x] * 5)
  306. sorted_list_of_keyvalues = sorted(list(ips_data.items()), key=item[1]['data_two'])"
  307. """""""\\xc3\\x85あ"""""".encode('utf-8').decode('unicode_escape')
  308. """"""\\xc3\\x85あ"""""".encode('utf-8')
  309. [j for i in zip(a, b) for j in i]
  310. [j for i in zip(a, b) for j in i]
  311. print([s.replace('8', '') for s in lst])
  312. """""","""""".join('Hello')
  313. Content.objects.all().order_by('?')[:100]
  314. A[np.arange(A.shape[0])[:, (None)], B]
  315. df.pivot_table(index='saleid', columns='upc', aggfunc='size', fill_value=0)"
  316. "{key: val for key, val in list(myDict.items()) if val != 42}
  317. return len(s.encode('utf-8'))
  318. os.kill(process.pid, signal.SIGKILL)
  319. df[pd.isnull(df).any(axis=1)]
  320. url.split('&')[-1].replace('=', '') + '.html'
  321. parser.ParseFile(open('sample.xml', 'rb'))
  322. sys.exit()
  323. setattr(self, attr, group)
  324. urllib.parse.unquote(urllib.parse.unquote(some_string))"
  325. "pd.concat(g for _, g in df.groupby('ID') if len(g) > 1)
  326. x = numpy.delete(x, 2, axis=1)
  327. x = numpy.delete(x, 0, axis=0)
  328. pd.concat((df1, df2), axis=1).mean(axis=1)
  329. np.mean(np.array([old_set, new_set]), axis=0)
  330. scatter(x, y, s=500, color='green', marker='h')
  331. result = [item for word in words for item in word.split(',')]
  332. datetime.datetime.strptime('2012-05-29T19:30:03.283Z', '%Y-%m-%dT%H:%M:%S.%fZ')
  333. sum(item['one'] for item in list(tadas.values()))"
  334. "a.encode('ascii', 'ignore')
  335. files = [f for f in os.listdir('.') if re.match('[0-9]+.*\\.jpg', f)]
  336. np.zeros((6, 9, 20)) + np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])[(None), :, (None)]
  337. np.zeros((6, 9, 20)) + np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]).reshape((1, 9, 1))
  338. os.system('start excel.exe <path/to/file>')
  339. print(max(x, key=sum))
  340. sum(len(y) for y in x if len(y) > 1)
  341. re.sub('(\\d+)', '""\\1""', 'This is number 1 and this is number 22')
  342. numpy.dot(numpy.dot(a, m), a)"
  343. "sorted(list_of_dct, key=lambda x: order.index(list(x.values())[0]))
  344. return s[0].upper() + s[1:]
  345. """""""""""".join([1, 2, 3, 4])
  346. line = line.decode('utf-8', 'ignore').encode('utf-8')
  347. os.system(command)
  348. c.execute('SELECT * FROM foo WHERE bar = %s AND baz = %s', (param1, param2))
  349. dateobj = datetime.datetime.strptime(datestr, '%Y-%m-%d').date()
  350. os.kill(os.getpid(), signal.SIGUSR1)
  351. bytes.fromhex('4a4b4c').decode('utf-8')"
  352. "pd.merge(split_df, csv_df, on=['key'], suffixes=('_left', '_right'))
  353. s.split(' ', 4)
  354. input('Enter your input:')
  355. app.run(debug=True)
  356. pickle.dump(mylist, open('save.txt', 'wb'))
  357. scipy.tensordot(P, T, axes=[1, 1]).swapaxes(0, 1)
  358. numpy.zeros((3, 3, 3))
  359. """""" """""".join(content.split(' ')[:-1])
  360. x = np.asarray(x).reshape(1, -1)[(0), :]"
  361. "db.GqlQuery('SELECT * FROM Schedule WHERE station = $1', foo.key())
  362. df.b.str.contains('^f')
  363. print('\n'.join('\t'.join(str(col) for col in row) for row in tab))
  364. df.set_index(list('BC')).drop(tuples, errors='ignore').reset_index()
  365. """"""({:d} goals, ${:d})"""""".format(self.goals, self.penalties)
  366. """"""({} goals, ${})"""""".format(self.goals, self.penalties)
  367. """"""({0.goals} goals, ${0.penalties})"""""".format(self)
  368. [int(''.join(str(d) for d in x)) for x in L]
  369. [''.join(str(d) for d in x) for x in L]"
  370. "re.sub('[^\\sa-zA-Z0-9]', '', text).lower().strip()
  371. re.sub('(?!\\s)[\\W_]', '', text).lower().strip()
  372. plt.plot(x, y, label='H\u2082O')
  373. plt.plot(x, y, label='$H_2O$')
  374. [x for x in mylist if len(x) == 3]
  375. lst = [Object() for _ in range(100)]
  376. lst = [Object() for i in range(100)]
  377. self.driver.find_element_by_css_selector('.someclass a').get_attribute('href')
  378. df1.merge(df2, on='Date_Time')"
  379. "sorted(d.items())
  380. int('1')
  381. int()
  382. T2 = [map(int, x) for x in T1]
  383. subprocess.call(['./test.sh'])
  384. subprocess.call(['notepad'])
  385. [val for pair in zip(l1, l2) for val in pair]
  386. encoded = base64.b64encode('data to be encoded')
  387. encoded = 'data to be encoded'.encode('ascii')"
  388. "writer.writeheader()
  389. df.fillna(df.mean(axis=1), axis=1)
  390. time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1347517370))
  391. super(Derived, cls).do(a)
  392. a[np.where((a[:, (0)] == 0) * (a[:, (1)] == 1))]
  393. re.split(' +', 'hello world sample text')
  394. len(max(words, key=len))
  395. result[0]['from_user']
  396. [line.split() for line in open('File.txt')]"
  397. "new_file = open('path/to/FILE_NAME.ext', 'w')
  398. df.groupby(['col1', 'col2'])['col3'].nunique().reset_index()
  399. any(key.startswith('EMP$$') for key in dict1)
  400. [value for key, value in list(dict1.items()) if key.startswith('EMP$$')]
  401. pd.DataFrame({'email': sf.index, 'list': sf.values})
  402. print('\t'.join(map(str, list)))
  403. print('\xd0\xbf\xd1\x80\xd0\xb8'.encode('raw_unicode_escape'))
  404. 'Sopet\xc3\xb3n'.encode('latin-1').decode('utf-8')
  405. image = image.resize((x, y), Image.ANTIALIAS)"
  406. "subprocess.Popen(['background-process', 'arguments'])
  407. [mydict[x] for x in mykeys]
  408. dict([('Name', 'Joe'), ('Age', 22)])
  409. data.reshape(-1, j).mean(axis=1).reshape(data.shape[0], -1)
  410. print(s.encode('unicode-escape').replace('""', '\\""'))
  411. re.split('(\\W+)', s)
  412. df.plot(kind='barh', stacked=True)
  413. {i[1]: i[0] for i in list(myDictionary.items())}
  414. [i for i, j in enumerate(myList) if 'how' in j.lower() or 'what' in j.lower()]"
  415. "pd.concat([df[0].apply(pd.Series), df[1]], axis=1)
  416. re.findall('src=""js/([^""]*\\bjquery\\b[^""]*)""', data)
  417. sum(int(float(item)) for item in [_f for _f in ['', '3.4', '', '', '1.0'] if _f])
  418. subprocess.Popen(['c:\\Program Files\\VMware\\VMware Server\\vmware-cmd.bat'])
  419. q.put((-n, n))
  420. df['group'].plot(kind='bar', color=['r', 'g', 'b', 'r', 'g', 'b', 'r'])
  421. re.findall('([a-fA-F\\d]{32})', data)
  422. len(my_list)
  423. len(l)"
  424. "print(concatenate((a, b), axis=1))
  425. c = np.r_[(a[None, :], b[None, :])]
  426. np.array((a, b))
  427. print(socket.getaddrinfo('google.com', 80))
  428. df.xs('sat', level='day', drop_level=False)
  429. return HttpResponse('Unauthorized', status=401)
  430. Flask(__name__, template_folder='wherever')
  431. session.execute('INSERT INTO t1 (SELECT * FROM t2)')
  432. c2.sort(key=lambda row: row[2])"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...