__repr__ don't print Pace, R.
Il 8 febbraio 2016 21:17, Manlio Perillo <manlio.peri...@gmail.com> ha scritto: > 2016-02-08 20:52 GMT+01:00 Christian Barra <barrac...@gmail.com>: >> >> >> Il giorno 8 febbraio 2016 20:42, Manlio Perillo <manlio.peri...@gmail.com> >> ha scritto: >>> >>> 4. encoding non impostato correttamente su terminale? >>> >>> Christian: prova a fare, da jupiter: >>> >>> >>> s = df_1.loc[1,"DESCRIZIONE"] >>> >>> print(type(s)) >> >> >> <class 'str'> >> >>> >>> print(repr(s)) >> > > Strano. Se fai: >>>> df_1 = pd.read_csv(URL, encoding="latin-1") > > mi aspetto che ti restituisca stringhe unicode. > >>>> print(type(df.loc[1,"DESCRIZIONE"])) > stampa str oppure unicode? > > Se stampa unicode potrebbe essere un bug di panda/urllib, altrimenti > significa che panda fa qualcosa di veramente brutto, ma di brutto > brutto brutto nè (cit). > > Ciao Manlio > _______________________________________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/mailman/listinfo/python _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python