コード例 #1
0
ファイル: DataFrame.java プロジェクト: briljant/briljant
 /**
  * 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
ファイル: DataFrame.java プロジェクト: briljant/briljant
 /**
  * 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)));
 }