comparison notebooks/results_30_seconds_and_figures.ipynb @ 95:4aa0763bf8d8 branch-tests

trying to clear up pickle and metadata
author Maria Panteli <m.x.panteli@gmail.com>
date Mon, 02 Oct 2017 19:00:35 +0100
parents c829d4f20066
children 5eba53437755
comparison
equal deleted inserted replaced
92:ce525367960e 95:4aa0763bf8d8
1 { 1 {
2 "cells": [ 2 "cells": [
3 { 3 {
4 "cell_type": "code", 4 "cell_type": "code",
5 "execution_count": 32, 5 "execution_count": 44,
6 "metadata": { 6 "metadata": {
7 "collapsed": false 7 "collapsed": false
8 }, 8 },
9 "outputs": [ 9 "outputs": [
10 { 10 {
40 "import scripts.interactive_plot as interactive_plot" 40 "import scripts.interactive_plot as interactive_plot"
41 ] 41 ]
42 }, 42 },
43 { 43 {
44 "cell_type": "code", 44 "cell_type": "code",
45 "execution_count": 29, 45 "execution_count": 86,
46 "metadata": { 46 "metadata": {
47 "collapsed": false 47 "collapsed": false
48 }, 48 },
49 "outputs": [ 49 "outputs": [
50 { 50 {
85 "dataset, ddf, w_dict = outliers.load_data(DATA_FILE, METADATA_FILE)" 85 "dataset, ddf, w_dict = outliers.load_data(DATA_FILE, METADATA_FILE)"
86 ] 86 ]
87 }, 87 },
88 { 88 {
89 "cell_type": "code", 89 "cell_type": "code",
90 "execution_count": 39, 90 "execution_count": 87,
91 "metadata": { 91 "metadata": {
92 "collapsed": false 92 "collapsed": false
93 }, 93 },
94 "outputs": [ 94 "outputs": [],
95 {
96 "name": "stderr",
97 "output_type": "stream",
98 "text": [
99 "/Users/mariapanteli/anaconda/lib/python2.7/site-packages/pandas/core/indexing.py:121: SettingWithCopyWarning: \n",
100 "A value is trying to be set on a copy of a slice from a DataFrame\n",
101 "\n",
102 "See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
103 " self._setitem_with_indexer(indexer, value)\n"
104 ]
105 }
106 ],
107 "source": [ 95 "source": [
108 "# correct BL urls:\n", 96 "# correct BL urls:\n",
109 "bl_inds = np.where(np.isnan(ddf['BuyLinkTrackDownload']))[0]\n", 97 "bl_inds = np.where(np.isnan(ddf['BuyLinkTrackDownload']))[0]\n",
110 "for bl_ind in bl_inds:\n", 98 "for bl_ind in bl_inds:\n",
111 " ddf['songurls_Album'].iloc[bl_ind] = ('https://sounds.bl.uk/World-and-traditional-music/' + \n", 99 " ddf['songurls_Album'].iloc[bl_ind] = ('https://sounds.bl.uk/World-and-traditional-music/' + \n",
113 " ddf['MetaFile'].iloc[bl_ind].split('.')[0])" 101 " ddf['MetaFile'].iloc[bl_ind].split('.')[0])"
114 ] 102 ]
115 }, 103 },
116 { 104 {
117 "cell_type": "code", 105 "cell_type": "code",
118 "execution_count": 30, 106 "execution_count": 88,
119 "metadata": { 107 "metadata": {
120 "collapsed": false 108 "collapsed": false
121 }, 109 },
122 "outputs": [ 110 "outputs": [
123 { 111 {
124 "data": { 112 "data": {
125 "text/plain": [ 113 "text/plain": [
126 "(8200, 109)" 114 "(8200, 109)"
127 ] 115 ]
128 }, 116 },
129 "execution_count": 30, 117 "execution_count": 88,
130 "metadata": {}, 118 "metadata": {},
131 "output_type": "execute_result" 119 "output_type": "execute_result"
132 } 120 }
133 ], 121 ],
134 "source": [ 122 "source": [
135 "X_list, Y, Yaudio = dataset\n", 123 "X_list, Y, Yaudio = dataset\n",
136 "X = np.concatenate(X_list, axis=1)\n", 124 "X = np.concatenate(X_list, axis=1)\n",
137 "ddf.shape" 125 "ddf.shape"
126 ]
127 },
128 {
129 "cell_type": "code",
130 "execution_count": null,
131 "metadata": {
132 "collapsed": false
133 },
134 "outputs": [
135 {
136 "name": "stdout",
137 "output_type": "stream",
138 "text": [
139 "Index([u'Audio', u'AlbumTitle', u'Artist', u'Artist_Album', u'BuyLinkTrackDownload', u'CatalogNumber', u'CatalogNumber_Album', u'Collection', u'ContentType', u'ContentType_Album', u'Country', u'Country_Album', u'Culture', u'Culture_Album', u'Decade', u'Decade_Album', u'File', u'Folder', u'Format_Album', u'GEO3major', u'Genre_Album', u'ISO3', u'ImageURL', u'ImageURL_Album', u'Instrument', u'Instrument_Album', u'Keywords', u'Keywords_Album', u'Label_Album', u'Language', u'Language_Album', u'LocDetails', u'MetaFile', u'NAME', u'PriceTrackDownload', u'REGION', u'SampleAudio', u'SortDate', u'SortDate_Album', u'Subject', u'Subject_Album', u'Title', u'Title_Album', u'Unnamed: 0', u'X', u'X.UA.Compatible', u'X.UA.Compatible_Album', u'Year', u'Year_Album', u'blterms.mechanism', u'buylinkalbumdownload_Album', u'buylinkboxset_Album', u'buylinkcd_Album', u'buylinkcustomcassette_Album', u'buylinkcustomcd_Album', u'buylinklp_Album', u'charset', u'charset_Album', u'continent', u'dc.contributor', u'dc.description', u'dc.identifier', u'dc.rights', u'dc.source', u'dc.subject', u'dc.title', u'dc.type', u'dcterms.abstract', u'dcterms.contributor', u'dcterms.extent', u'dcterms.langauge', u'dcterms.language', u'dcterms.temporal', u'generator', u'generator_Album', u'marcrel.ARR', u'marcrel.AUT', u'marcrel.CMP', u'marcrel.CND', u'marcrel.DRT', u'marcrel.IVE', u'marcrel.IVR', u'marcrel.LYR', u'marcrel.PRF', u'marcrel.PRO', u'marcrel.RCE', u'marcrel.SPK', u'marcrel.perfomer', u'pricealbumdownload_Album', u'priceboxset_Album', u'pricecd_Album', u'pricecustomcassette_Album', u'pricecustomcd_Album', u'pricelp_Album', u'rdf.about', u'songurls_Album', u'viewport', u'viewport_Album', u'Language_name', u'Language_iso3', ...], dtype='object')\n"
140 ]
141 }
142 ],
143 "source": [
144 "print ddf.columns\n",
145 "cols_to_keep = ['Country', 'continent', 'REGION', 'LocDetails',\n",
146 " 'Language', 'Language_iso3', 'Culture', 'Genre_Album', 'Year', 'Decade', \n",
147 " 'songurls_Album', 'Audio', 'Speech', 'Melspec', 'Chroma', 'Melodia']\n",
148 "cols_rename = ['Country', 'Continent', 'Region', 'Location_details', \n",
149 " 'Language', 'Language_iso3', 'Culture', 'Genre', 'Year', 'Decade',\n",
150 " 'Url', 'Audio', 'Speech', 'Melspec', 'Chroma', 'Melodia']\n",
151 "col_idx = []\n",
152 "for column in cols_to_keep:\n",
153 " if column not in ddf.columns:\n",
154 " print column\n",
155 " col_idx.append(np.where(ddf.columns==column)[0])\n",
156 "col_idx = np.concatenate(col_idx)\n",
157 "ddf_new = ddf.iloc[:, col_idx]\n",
158 "ddf_new.columns = cols_rename"
159 ]
160 },
161 {
162 "cell_type": "code",
163 "execution_count": 79,
164 "metadata": {
165 "collapsed": false
166 },
167 "outputs": [
168 {
169 "name": "stdout",
170 "output_type": "stream",
171 "text": [
172 "['__SampleAudio.wav' '__SampleAudio.wav' '__SampleAudio.wav' ...,\n",
173 " '_D:_025A-C0004X4953XX-0100A0.mp3' '_D:_025A-C0004X4984XX-0100A0.mp3'\n",
174 " '_D:_025A-C0004X4996XX-0400A0.mp3']\n",
175 "0 14923_SampleAudio.wav\n",
176 "1 14968_SampleAudio.wav\n",
177 "2 15137_SampleAudio.wav\n",
178 "3 15138_SampleAudio.wav\n",
179 "4 15139_SampleAudio.wav\n",
180 "5 15140_SampleAudio.wav\n",
181 "6 15141_SampleAudio.wav\n",
182 "7 15145_SampleAudio.wav\n",
183 "8 15146_SampleAudio.wav\n",
184 "9 15147_SampleAudio.wav\n",
185 "10 15148_SampleAudio.wav\n",
186 "11 15150_SampleAudio.wav\n",
187 "12 15180_SampleAudio.wav\n",
188 "13 15181_SampleAudio.wav\n",
189 "14 15184_SampleAudio.wav\n",
190 "...\n",
191 "8185 Violeta-Ruano-portraits-of-Saharawi-Music_025A...\n",
192 "8186 Violeta-Ruano-portraits-of-Saharawi-Music_025A...\n",
193 "8187 Violeta-Ruano-portraits-of-Saharawi-Music_025A...\n",
194 "8188 Violeta-Ruano-portraits-of-Saharawi-Music_025A...\n",
195 "8189 Violeta-Ruano-portraits-of-Saharawi-Music_025A...\n",
196 "8190 Wachsmann_025A-C0004X0023XX-0100A0.mp3\n",
197 "8191 Wachsmann_025A-C0004X0029XX-1900A0.mp3\n",
198 "8192 Wachsmann_025A-C0004X0037XX-0700A0.mp3\n",
199 "8193 Wachsmann_025A-C0004X0038XX-0100A0.mp3\n",
200 "8194 Wachsmann_025A-C0004X0046XX-0900A0.mp3\n",
201 "8195 Wachsmann_025A-C0004X0054XX-1300A0.mp3\n",
202 "8196 Wachsmann_025A-C0004X0063XX-1400A0.mp3\n",
203 "8197 Wachsmann_025A-C0004X4953XX-0100A0.mp3\n",
204 "8198 Wachsmann_025A-C0004X4984XX-0100A0.mp3\n",
205 "8199 Wachsmann_025A-C0004X4996XX-0400A0.mp3\n",
206 "Name: Audio, Length: 8200, dtype: object\n"
207 ]
208 },
209 {
210 "name": "stderr",
211 "output_type": "stream",
212 "text": [
213 "/Users/mariapanteli/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:4: SettingWithCopyWarning: \n",
214 "A value is trying to be set on a copy of a slice from a DataFrame\n",
215 "\n",
216 "See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n"
217 ]
218 }
219 ],
220 "source": [
221 "for i, yy in enumerate(Yaudio):\n",
222 " Yaudio[i] = os.path.split(os.path.split(yy)[0])[-1] + '_' + os.path.split(yy)[-1]\n",
223 "for i, yy in enumerate(ddf_new['Audio']):\n",
224 " ddf_new['Audio'].iloc[i] = os.path.split(os.path.split(yy)[0])[-1] + '_' + os.path.split(yy)[-1]\n",
225 "\n",
226 "print Yaudio\n",
227 "print ddf_new['Audio']"
228 ]
229 },
230 {
231 "cell_type": "code",
232 "execution_count": null,
233 "metadata": {
234 "collapsed": false
235 },
236 "outputs": [
237 {
238 "name": "stderr",
239 "output_type": "stream",
240 "text": [
241 "/Users/mariapanteli/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:4: SettingWithCopyWarning: \n",
242 "A value is trying to be set on a copy of a slice from a DataFrame\n",
243 "\n",
244 "See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
245 "/Users/mariapanteli/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:5: SettingWithCopyWarning: \n",
246 "A value is trying to be set on a copy of a slice from a DataFrame\n",
247 "\n",
248 "See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
249 "/Users/mariapanteli/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:6: SettingWithCopyWarning: \n",
250 "A value is trying to be set on a copy of a slice from a DataFrame\n",
251 "\n",
252 "See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n",
253 "/Users/mariapanteli/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:7: SettingWithCopyWarning: \n",
254 "A value is trying to be set on a copy of a slice from a DataFrame\n",
255 "\n",
256 "See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy\n"
257 ]
258 }
259 ],
260 "source": [
261 "for i, yy in enumerate(ddf_new['Audio']):\n",
262 " new_name = os.path.split(os.path.split(yy)[0])[-1] + '_' + os.path.split(yy)[-1]\n",
263 " new_csv_name = new_name.split('.')[0]+'.csv'\n",
264 " ddf_new['Audio'].iloc[i] = os.path.join('Audio', new_name)\n",
265 " ddf_new['Chroma'].iloc[i] = os.path.join('Chroma', new_csv_name)\n",
266 " ddf_new['Melspec'].iloc[i] = os.path.join('Melspec', new_csv_name)\n",
267 " ddf_new['Melodia'].iloc[i] = os.path.join('Melodia', new_csv_name)\n",
268 " ddf_new['Speech'].iloc[i] = os.path.join('Speech', new_csv_name)\n",
269 " Yaudio[i] = new_name"
270 ]
271 },
272 {
273 "cell_type": "code",
274 "execution_count": null,
275 "metadata": {
276 "collapsed": false
277 },
278 "outputs": [],
279 "source": [
280 "ddf_new.to_csv('../data/metadata.csv', index=False)\n",
281 "pickle.dump([X_list, Y, Yaudio], open('../data/lda_data_8.pickle', 'wb'))"
282 ]
283 },
284 {
285 "cell_type": "code",
286 "execution_count": 82,
287 "metadata": {
288 "collapsed": false
289 },
290 "outputs": [
291 {
292 "data": {
293 "text/html": [
294 "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
295 "<table border=\"1\" class=\"dataframe\">\n",
296 " <thead>\n",
297 " <tr style=\"text-align: right;\">\n",
298 " <th></th>\n",
299 " <th>Country</th>\n",
300 " <th>Continent</th>\n",
301 " <th>Region</th>\n",
302 " <th>Location_details</th>\n",
303 " <th>Language</th>\n",
304 " <th>Language_iso3</th>\n",
305 " <th>Culture</th>\n",
306 " <th>Genre</th>\n",
307 " <th>Year</th>\n",
308 " <th>Decade</th>\n",
309 " <th>Url</th>\n",
310 " <th>Audio</th>\n",
311 " <th>Speech</th>\n",
312 " <th>Melspec</th>\n",
313 " <th>Chroma</th>\n",
314 " <th>Melodia</th>\n",
315 " </tr>\n",
316 " </thead>\n",
317 " <tbody>\n",
318 " <tr>\n",
319 " <th>0</th>\n",
320 " <td> United States of America</td>\n",
321 " <td> North America</td>\n",
322 " <td> North America</td>\n",
323 " <td> United States</td>\n",
324 " <td> English</td>\n",
325 " <td> eng</td>\n",
326 " <td> NaN</td>\n",
327 " <td> American Folk</td>\n",
328 " <td> 1981</td>\n",
329 " <td> 1980s</td>\n",
330 " <td> http://www.folkways.si.edu/bobbie-mcgee/the-bo...</td>\n",
331 " <td> 14923_SampleAudio.wav</td>\n",
332 " <td> /import/c4dm-02/people/mariap/SpeechMusic/1492...</td>\n",
333 " <td> /import/c4dm-02/people/mariap/MelSpec/14923_Sa...</td>\n",
334 " <td> /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py...</td>\n",
335 " <td> /import/c4dm-02/people/mariap/Melodia/14923_Sa...</td>\n",
336 " </tr>\n",
337 " <tr>\n",
338 " <th>1</th>\n",
339 " <td> United States of America</td>\n",
340 " <td> North America</td>\n",
341 " <td> North America</td>\n",
342 " <td> United States</td>\n",
343 " <td> English</td>\n",
344 " <td> eng</td>\n",
345 " <td> NaN</td>\n",
346 " <td> American Folk|Struggle &amp;amp; Protest</td>\n",
347 " <td> 1987</td>\n",
348 " <td> 1980s</td>\n",
349 " <td> http://www.folkways.si.edu/joe-glazer/senior-c...</td>\n",
350 " <td> 14968_SampleAudio.wav</td>\n",
351 " <td> /import/c4dm-02/people/mariap/SpeechMusic/1496...</td>\n",
352 " <td> /import/c4dm-02/people/mariap/MelSpec/14968_Sa...</td>\n",
353 " <td> /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py...</td>\n",
354 " <td> /import/c4dm-02/people/mariap/Melodia/14968_Sa...</td>\n",
355 " </tr>\n",
356 " <tr>\n",
357 " <th>2</th>\n",
358 " <td> Saint Lucia</td>\n",
359 " <td> South America</td>\n",
360 " <td> South America</td>\n",
361 " <td> Saint Lucia</td>\n",
362 " <td> NaN</td>\n",
363 " <td> NaN</td>\n",
364 " <td> NaN</td>\n",
365 " <td> Caribbean|World</td>\n",
366 " <td> 1953</td>\n",
367 " <td> 1950s</td>\n",
368 " <td> http://www.folkways.si.edu/st-cecilias-day-ser...</td>\n",
369 " <td> 15137_SampleAudio.wav</td>\n",
370 " <td> /import/c4dm-02/people/mariap/SpeechMusic/1513...</td>\n",
371 " <td> /import/c4dm-02/people/mariap/MelSpec/15137_Sa...</td>\n",
372 " <td> /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py...</td>\n",
373 " <td> /import/c4dm-02/people/mariap/Melodia/15137_Sa...</td>\n",
374 " </tr>\n",
375 " <tr>\n",
376 " <th>3</th>\n",
377 " <td> Saint Lucia</td>\n",
378 " <td> South America</td>\n",
379 " <td> South America</td>\n",
380 " <td> Saint Lucia</td>\n",
381 " <td> NaN</td>\n",
382 " <td> NaN</td>\n",
383 " <td> NaN</td>\n",
384 " <td> Caribbean|World</td>\n",
385 " <td> 1953</td>\n",
386 " <td> 1950s</td>\n",
387 " <td> http://www.folkways.si.edu/la-rose-la-margueri...</td>\n",
388 " <td> 15138_SampleAudio.wav</td>\n",
389 " <td> /import/c4dm-02/people/mariap/SpeechMusic/1513...</td>\n",
390 " <td> /import/c4dm-02/people/mariap/MelSpec/15138_Sa...</td>\n",
391 " <td> /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py...</td>\n",
392 " <td> /import/c4dm-02/people/mariap/Melodia/15138_Sa...</td>\n",
393 " </tr>\n",
394 " <tr>\n",
395 " <th>4</th>\n",
396 " <td> Saint Lucia</td>\n",
397 " <td> South America</td>\n",
398 " <td> South America</td>\n",
399 " <td> Saint Lucia</td>\n",
400 " <td> NaN</td>\n",
401 " <td> NaN</td>\n",
402 " <td> NaN</td>\n",
403 " <td> Caribbean|World</td>\n",
404 " <td> 1953</td>\n",
405 " <td> 1950s</td>\n",
406 " <td> http://www.folkways.si.edu/la-rose-la-margueri...</td>\n",
407 " <td> 15139_SampleAudio.wav</td>\n",
408 " <td> /import/c4dm-02/people/mariap/SpeechMusic/1513...</td>\n",
409 " <td> /import/c4dm-02/people/mariap/MelSpec/15139_Sa...</td>\n",
410 " <td> /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py...</td>\n",
411 " <td> /import/c4dm-02/people/mariap/Melodia/15139_Sa...</td>\n",
412 " </tr>\n",
413 " </tbody>\n",
414 "</table>\n",
415 "</div>"
416 ],
417 "text/plain": [
418 " Country Continent Region Location_details \\\n",
419 "0 United States of America North America North America United States \n",
420 "1 United States of America North America North America United States \n",
421 "2 Saint Lucia South America South America Saint Lucia \n",
422 "3 Saint Lucia South America South America Saint Lucia \n",
423 "4 Saint Lucia South America South America Saint Lucia \n",
424 "\n",
425 " Language Language_iso3 Culture Genre Year \\\n",
426 "0 English eng NaN American Folk 1981 \n",
427 "1 English eng NaN American Folk|Struggle &amp; Protest 1987 \n",
428 "2 NaN NaN NaN Caribbean|World 1953 \n",
429 "3 NaN NaN NaN Caribbean|World 1953 \n",
430 "4 NaN NaN NaN Caribbean|World 1953 \n",
431 "\n",
432 " Decade Url \\\n",
433 "0 1980s http://www.folkways.si.edu/bobbie-mcgee/the-bo... \n",
434 "1 1980s http://www.folkways.si.edu/joe-glazer/senior-c... \n",
435 "2 1950s http://www.folkways.si.edu/st-cecilias-day-ser... \n",
436 "3 1950s http://www.folkways.si.edu/la-rose-la-margueri... \n",
437 "4 1950s http://www.folkways.si.edu/la-rose-la-margueri... \n",
438 "\n",
439 " Audio Speech \\\n",
440 "0 14923_SampleAudio.wav /import/c4dm-02/people/mariap/SpeechMusic/1492... \n",
441 "1 14968_SampleAudio.wav /import/c4dm-02/people/mariap/SpeechMusic/1496... \n",
442 "2 15137_SampleAudio.wav /import/c4dm-02/people/mariap/SpeechMusic/1513... \n",
443 "3 15138_SampleAudio.wav /import/c4dm-02/people/mariap/SpeechMusic/1513... \n",
444 "4 15139_SampleAudio.wav /import/c4dm-02/people/mariap/SpeechMusic/1513... \n",
445 "\n",
446 " Melspec \\\n",
447 "0 /import/c4dm-02/people/mariap/MelSpec/14923_Sa... \n",
448 "1 /import/c4dm-02/people/mariap/MelSpec/14968_Sa... \n",
449 "2 /import/c4dm-02/people/mariap/MelSpec/15137_Sa... \n",
450 "3 /import/c4dm-02/people/mariap/MelSpec/15138_Sa... \n",
451 "4 /import/c4dm-02/people/mariap/MelSpec/15139_Sa... \n",
452 "\n",
453 " Chroma \\\n",
454 "0 /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py... \n",
455 "1 /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py... \n",
456 "2 /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py... \n",
457 "3 /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py... \n",
458 "4 /import/c4dm-04/mariap/FeatureCsvs/Smoothie-py... \n",
459 "\n",
460 " Melodia \n",
461 "0 /import/c4dm-02/people/mariap/Melodia/14923_Sa... \n",
462 "1 /import/c4dm-02/people/mariap/Melodia/14968_Sa... \n",
463 "2 /import/c4dm-02/people/mariap/Melodia/15137_Sa... \n",
464 "3 /import/c4dm-02/people/mariap/Melodia/15138_Sa... \n",
465 "4 /import/c4dm-02/people/mariap/Melodia/15139_Sa... "
466 ]
467 },
468 "execution_count": 82,
469 "metadata": {},
470 "output_type": "execute_result"
471 }
472 ],
473 "source": [
474 "ddf_new.head()"
475 ]
476 },
477 {
478 "cell_type": "code",
479 "execution_count": 85,
480 "metadata": {
481 "collapsed": false
482 },
483 "outputs": [
484 {
485 "data": {
486 "text/plain": [
487 "array(['__SampleAudio.wav', '__SampleAudio.wav', '__SampleAudio.wav', ...,\n",
488 " '_D:_025A-C0004X4953XX-0100A0.mp3',\n",
489 " '_D:_025A-C0004X4984XX-0100A0.mp3',\n",
490 " '_D:_025A-C0004X4996XX-0400A0.mp3'], \n",
491 " dtype='|S80')"
492 ]
493 },
494 "execution_count": 85,
495 "metadata": {},
496 "output_type": "execute_result"
497 }
498 ],
499 "source": [
500 "Yaudio"
138 ] 501 ]
139 }, 502 },
140 { 503 {
141 "cell_type": "code", 504 "cell_type": "code",
142 "execution_count": 43, 505 "execution_count": 43,