Fwd: Unable to convert pandas object to string

2017-06-25 Thread Paul Barry
Forgot to include this reply to the list (as others may want to comment). -- Forwarded message -- From: Paul Barry Date: 24 June 2017 at 12:21 Subject: Re: Unable to convert pandas object to string To: Bhaskar Dhariyal Note that .info(), according to its docs, gives you a

Fw: Unable to convert pandas object to string

2017-06-24 Thread Albert-Jan Roskam
From: Albert-Jan Roskam Sent: Saturday, June 24, 2017 11:26:26 AM To: Paul Barry Subject: Re: Unable to convert pandas object to string (sorry for top posting) Try using fillna('') to convert np.nan into empty strings. df['desc'] = df.

Re: Unable to convert pandas object to string

2017-06-24 Thread Paul Barry
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 wrote: > ​ > train.csv >

Re: Unable to convert pandas object to string

2017-06-24 Thread Paul Barry
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/jakevdp/PythonDataScienceHandbook Paul. On 24 June 2017 at 10:32, Bhaskar Dhariya

Unable to convert pandas object to string

2017-06-24 Thread Bhaskar Dhariyal
Int64Index: 171594 entries, 0 to 63464 Data columns (total 7 columns): project_id 171594 non-null object desc171594 non-null object goal171594 non-null float64 keywords171594 non-null object diff_creat_laun 171594 non-null int64 diff_laun_st