-
Notifications
You must be signed in to change notification settings - Fork 56
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
Dataframe can not convert to tfrecord #39
Comments
df2 is the output of the groupBy operation, which is "RelationalGroupedDataset". There is no TFRecord equivalence for this kind of data schema. TFRecord supports very limited schema. It is for TF model training only. |
May i ask how can i design my schema like this 。 I want convert RDD into DataFrame use StructType , inside of groupBy opration. +-------------+--------------------+ |
If you already have the RDD, then you can create the schema, then use https://stackoverflow.com/questions/29383578/how-to-convert-rdd-object-to-dataframe-in-spark |
df1 can convert to tfrecord,but df2 cannot .
why is that?
The text was updated successfully, but these errors were encountered: