| 构造器 | 说明 |
|---|---|
Series(ucar.ma2.Array data,
String name) |
Constructor
|
Series(ucar.ma2.Array data,
List idxValue,
String name) |
Constructor
|
Series(ucar.ma2.Array data,
Index index,
String name) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Series |
equal(Number v) |
Equal
|
ucar.ma2.Array |
getData() |
Get data array
|
Index |
getIndex() |
Get index
|
Object |
getIndexValue(int i) |
Get a index value
|
String |
getName() |
Get name
|
Object |
getValue(int i) |
Get a data value
|
Object |
getValueByIndex(Object idxValue) |
Get value by index
|
Series |
getValueByIndex(List idxValues) |
Get values by index
|
Series |
getValues(List<Integer> ii) |
Get values
|
Series |
getValues(ucar.ma2.Range range) |
Get values
|
Series |
greaterThan(Number v) |
Greater then
|
Series |
greaterThanOrEqual(Number v) |
Greater then or equal
|
SeriesGroupBy |
groupBy() |
Group the series rows using the specified key function.
|
SeriesGroupBy |
groupBy(String tStr) |
Group by time string - DateTimeIndex
|
SeriesGroupBy |
groupBy(KeyFunction function) |
Group the series rows using the specified key function.
|
SeriesGroupBy |
groupBy(TimeFunction function) |
Group the series rows using the specified time function.
|
String |
head(int n) |
Convert to string - head
|
boolean |
isEmpty() |
Get if the series contains no data
|
Iterator |
iterator() |
|
ListIterator<List<Object>> |
iterrows() |
|
Series |
lessThan(Number v) |
Less then
|
Series |
lessThanOrEqual(Number v) |
Less then or equal
|
Object |
max() |
Compute the maximum of the numeric columns for each group or the entire
data frame if the data is not grouped.
|
Object |
mean() |
Compute the mean of the numeric columns for each group or the entire data
frame if the data is not grouped.
|
Object |
min() |
Compute the minimum of the numeric columns for each group or the entire
data frame if the data is not grouped.
|
SeriesGroupBy |
resample(String pStr) |
Group the data frame rows using the specified key function.
|
SeriesGroupBy |
resample(WindowFunction function) |
Group the data frame rows using the specified key function.
|
void |
setData(ucar.ma2.Array value) |
Set data array
|
void |
setIndex(List value) |
Set index
|
void |
setIndex(Index value) |
Set index
|
void |
setName(String value) |
Set name
|
void |
setValue(int i,
Object v) |
Set a data value
|
void |
setValue(Series s,
Object v) |
Set data values by another boolean series
|
int |
size() |
Get size
|
String |
tail(int n) |
Convert to string - tail
|
String |
toString() |
forEach, spliteratorpublic Series(ucar.ma2.Array data,
Index index,
String name)
data - Data arrayindex - Indexname - Namepublic Series(ucar.ma2.Array data,
List idxValue,
String name)
data - Data arrayidxValue - Index valuename - Namepublic Series(ucar.ma2.Array data,
String name)
data - Data arrayname - namepublic ucar.ma2.Array getData()
public void setData(ucar.ma2.Array value)
value - Data arraypublic Index getIndex()
public void setIndex(Index value)
value - Indexpublic void setIndex(List value)
value - Index valuepublic String getName()
public void setName(String value)
value - Namepublic boolean isEmpty()
public Object getValue(int i)
i - Indexpublic Object getValueByIndex(Object idxValue)
idxValue - Index valuepublic void setValue(int i,
Object v)
i - Indexv - Data valuepublic void setValue(Series s, Object v)
s - Boolean seriesv - Data valuepublic Series getValues(List<Integer> ii)
ii - index valuespublic Series getValues(ucar.ma2.Range range)
range - Rangepublic Series getValueByIndex(List idxValues)
idxValues - index valuespublic Object getIndexValue(int i)
i - Indexpublic ListIterator<List<Object>> iterrows()
public int size()
public SeriesGroupBy groupBy(KeyFunction function)
function - the function to reduce rows to grouping keyspublic SeriesGroupBy groupBy()
public SeriesGroupBy groupBy(TimeFunction function)
function - the function to reduce rows to grouping keyspublic SeriesGroupBy groupBy(String tStr)
tStr - Time stringpublic SeriesGroupBy resample(WindowFunction function)
function - the function to reduce rows to grouping keyspublic SeriesGroupBy resample(String pStr)
pStr - Period stringpublic Object mean()
public Object max()
public Object min()
public Series lessThanOrEqual(Number v)
v - Valuepublic Series greaterThanOrEqual(Number v)
v - Valuepublic String head(int n)
n - Head row numberpublic String tail(int n)
n - Tail row numberCopyright © 2019. All rights reserved.