You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where there are two data frames with no common columns. How can I join them ? I want to join them with every other column one after another to produce various outputs.
Is it possible to join two DF's by specifying the mapping column/s from each DF ?
Cheers,
DareUrDream
The text was updated successfully, but these errors were encountered:
Try using the joinOn method with the column names for which the values match. Alternatively, you can use the joinOn method with a function that computes the join key.
I have achieved it for the time being by renaming columns in one of the data sets. But then I have hit another bottle neck. Below is the stack trace. I am not sure how to prepare a unique key now so that the join works.
Exception in thread "main" java.lang.IllegalArgumentException: generated key is not unique: [3]
at joinery.impl.Combining.join(Combining.java:45)
at joinery.impl.Combining.joinOn(Combining.java:102)
at joinery.DataFrame.joinOn(DataFrame.java:730)
at joinery.DataFrame.joinOn(DataFrame.java:756)
at com.cisco.evaluate.joinery.JoineryTestMain.startEvaluation(JoineryTestMain.java:37)
at com.cisco.evaluate.joinery.JoineryTestMain.main(JoineryTestMain.java:18)
Hi,
I have a situation where there are two data frames with no common columns. How can I join them ? I want to join them with every other column one after another to produce various outputs.
Is it possible to join two DF's by specifying the mapping column/s from each DF ?
Cheers,
DareUrDream
The text was updated successfully, but these errors were encountered: