Cudf: Error while converting panda data frame into cudf data frame

Created on 23 May 2019  路  4Comments  路  Source: rapidsai/cudf

Every time I try to convert a panda df to a cudf df I get the following error. What could've gone wrong?
Screenshot 2019-05-23 at 4 30 57 PM
Screenshot 2019-05-23 at 4 31 02 PM

? - Needs Triage question

Most helpful comment

Initially I had the output of X.dtypes all as objects. Conversion to the cudf data frame was giving me an error then. Then I converted the entire type to int64 and the conversion to the cudf data frame did not give me an error. I could run the code successfully. I am not sure if its supposed to work this way.

Screenshot 2019-05-27 at 12 39 04 PM

Screenshot 2019-05-27 at 12 39 43 PM

This is expected, we currently only support object dtypes for strings.

All 4 comments

Thanks @vp2527 this definitely looks like a series issue. What dtypes are in your original pandas dataframe? Can you give me a minimal reproducer code that allows me to reproduce the error without having your source data?

What's the output of
X.dtypes
?

Please review the set of questions that are asked when you file an issue and include as much information as you can with this one.

Initially I had the output of X.dtypes all as objects. Conversion to the cudf data frame was giving me an error then. Then I converted the entire type to int64 and the conversion to the cudf data frame did not give me an error. I could run the code successfully. I am not sure if its supposed to work this way.

Screenshot 2019-05-27 at 12 39 04 PM
Screenshot 2019-05-27 at 12 39 43 PM

Were you able to resolve your issue, then? cuDF is very specific about types, so that it can take advantage of GPU acceleration, whereas Pandas allows almost anything to go into the dataframe. :)

Is this issue closed?

Initially I had the output of X.dtypes all as objects. Conversion to the cudf data frame was giving me an error then. Then I converted the entire type to int64 and the conversion to the cudf data frame did not give me an error. I could run the code successfully. I am not sure if its supposed to work this way.

Screenshot 2019-05-27 at 12 39 04 PM

Screenshot 2019-05-27 at 12 39 43 PM

This is expected, we currently only support object dtypes for strings.

Was this page helpful?
0 / 5 - 0 ratings