예제 #1
0
 /**
  * Creates a data frame from the given keys and values.
  *
  * @param entries the keys and values with which the dataframe is populated
  * @return a newly created {@code DataFrame}
  */
 @SafeVarargs
 @SuppressWarnings("unchecked")
 static DataFrame fromEntries(
     Map.Entry<Object, ? extends Vector> entry, Map.Entry<Object, ? extends Vector>... entries) {
   return MixedDataFrame.fromEntries(ArrayAllocations.prepend(entry, entries));
 }
예제 #2
0
 /**
  * Set the index
  *
  * @param key the first key
  * @param keys the rest of the keys
  * @return this modified
  */
 default Builder setIndex(Object key, Object... keys) {
   return setIndex(Index.of(ArrayAllocations.prepend(key, keys)));
 }