Hi Bhaskar. Please see attached PDF of a small Jupyter notebook. As you'll see, the data in the fields you mentioned are *already* strings. What is it you are trying to do here?
Paul. On 24 June 2017 at 10:51, Bhaskar Dhariyal <dhariyalbhas...@gmail.com> wrote: > > train.csv > <https://drive.google.com/file/d/0B1D4AyluMGU0enoxbElGTV94Q0E/view?usp=drive_web> > here it is thanks for quick reply > > On Sat, Jun 24, 2017 at 3:14 PM, Paul Barry <paul.james.ba...@gmail.com> > wrote: > >> Any chance you could post one line of data so we can see what we have to >> work with? >> >> Also - have you taken a look at Jake VanderPlas's notebooks? There's lot >> of help with pandas to be found there: https://github.com/jake >> vdp/PythonDataScienceHandbook >> >> Paul. >> >> On 24 June 2017 at 10:32, Bhaskar Dhariyal <dhariyalbhas...@gmail.com> >> wrote: >> >>> <class 'pandas.core.frame.DataFrame'> >>> Int64Index: 171594 entries, 0 to 63464 >>> Data columns (total 7 columns): >>> project_id 171594 non-null object >>> desc 171594 non-null object >>> goal 171594 non-null float64 >>> keywords 171594 non-null object >>> diff_creat_laun 171594 non-null int64 >>> diff_laun_status 171594 non-null int64 >>> diff_status_dead 171594 non-null int64 >>> dtypes: float64(1), int64(3), object(3) >>> >>> not able to convert desc and keywords to string for preprocessing. >>> Tried astype(str). Please help >>> -- >>> https://mail.python.org/mailman/listinfo/python-list >>> >> >> >> >> -- >> Paul Barry, t: @barrypj <https://twitter.com/barrypj> - w: >> http://paulbarry.itcarlow.ie - e: paul.ba...@itcarlow.ie >> Lecturer, Computer Networking: Institute of Technology, Carlow, Ireland. >> > > -- Paul Barry, t: @barrypj <https://twitter.com/barrypj> - w: http://paulbarry.itcarlow.ie - e: paul.ba...@itcarlow.ie Lecturer, Computer Networking: Institute of Technology, Carlow, Ireland. -- https://mail.python.org/mailman/listinfo/python-list