danfojs
Version:
JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.
31 lines (29 loc) • 1.67 kB
TypeScript
/**
* @license
* Copyright 2022 JsData. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ==========================================================================
*/
import BaseSeries from "../../../danfojs-base/core/series";
import { BaseDataOptionType } from "../../../danfojs-base/shared/types";
/**
* One-dimensional ndarray with axis labels.
* The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index.
* Operations between Series (+, -, /, , *) align values based on their associated index values – they need not be the same length.
* @param data 1D Array, JSON, Tensor, Block of data.
* @param options.index Array of numeric or string index for subseting array. If not specified, indices are auto generated.
* @param options.columns Column name. This is like the name of the Series. If not specified, column name is set to 0.
* @param options.dtypes Data types of the Series data. If not specified, dtypes is inferred.
* @param options.config General configuration object for extending or setting Series behavior.
*/
export default class Series extends BaseSeries {
[key: string]: any;
constructor(data?: any, options?: BaseDataOptionType);
}