Skip to content

lib.isnullobj fails on list of strings input #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jseabold opened this issue Aug 20, 2012 · 0 comments
Closed

lib.isnullobj fails on list of strings input #1791

jseabold opened this issue Aug 20, 2012 · 0 comments
Labels
Milestone

Comments

@jseabold
Copy link
Contributor

Was playing around with the new string functions and noticed this. Don't really know if it's a bug or expected

np.version.full_version                                                     
#'1.6.1'
df = pandas.DataFrame(['jack and jill','jesse and frank'])
split_df = df[0].str.split(r'\s+and\s+')
split_df.to_csv('test')
#<snip>
#    75         shape = values.shape
#     76         result = np.empty(shape, dtype=bool)
#---> 77         vec = lib.isnullobj(values.ravel())
#     78         result[:] = vec.reshape(shape)
#     79 
#
#/usr/local/lib/python2.7/dist-packages/pandas-0.8.2.dev_3942eb0-py2.7-linux-x86_64.egg/pandas/lib.so in pandas.lib.isnullobj (pandas/src/tseries.c:5355)()            
#
#ValueError: Does not understand character buffer dtype format string ('s')

from pandas import lib
lib.isnullobj(np.array(split_df.ix[0]))                                      
#<snip>
#
#ValueError: Does not understand character buffer dtype format string ('s')
@wesm wesm closed this as completed in 553a2a9 Sep 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants