daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. import pandas as pd
  3. data  = [
  4.             {"valor": "82388-izquierda_negada"},
  5.  
  6.             {"valor": "82314-la_fiesta_del_futbol_en_nueva_jersey"},
  7.  
  8.             {"valor": "83369-cesar_hinostroza_____se_han_violado_mis_derechos___"},
  9.  
  10.             {"valor": "83427-el_famoso_var__video_"},
  11.  
  12.             {"valor": "83426-vizcarra_____caiga_quien_caiga__cueste_lo_que_cueste___"},
  13. ]
  14. print ("Dimension data--->", len(data))
  15.  
  16. data1 = [
  17.  
  18.         {"valor1": "82388-izquierda_negada"},
  19.  
  20.         {"valor1": "82314-la_fiesta_del_futbol_en_nueva_jersey"},
  21.  
  22.         {"valor1": "83369-cesar_hinostroza_____se_han_violado_mis_derechos___"},
  23.  
  24.         {"valor1": "83427-el_famoso_var__video_"},
  25.  
  26.         {"valor1": "83426-vizcarra_____caiga_quien_caiga__cueste_lo_que_cueste___"},
  27.  
  28.         {"valor1":"saint-seiya-soldiers-soul-shaka-virgo-se-luce-imagenes-noticia-392022-1230848"},
  29.  
  30.         {"valor1":"lluvias-provocan-huaicos-en-via-abancay-andahuaylas-736079/"},
  31.  
  32.         {"valor1":"jorge-sampaoli-confirmo-reemplazo-sergio-romero-rusia-2018-167251/"},
  33.  
  34.         {"valor1":"saint-seiya-soldiers-soul-shaka-virgo-se-luce-imagenes-noticia-392022-1230853"},
  35.  
  36.         {"valor1":"ciudad/pared-de-colegio-se-derrumba-y-aplasta-a-dos-ninos-y-mujer-embarazada-713125/"},
  37. ]
  38.  
  39. print ("Dimension data1 --->",len(data1))
  40.  
  41. df = pd.DataFrame(data=data, columns=['valor'])
  42. print (df['valor'][1])
  43. df1 = pd.DataFrame(data=data1, columns=['valor1'])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top