Package PyFoam :: Package Wrappers :: Module Pandas :: Class PyFoamDataFrame
[hide private]
[frames] | no frames]

Class PyFoamDataFrame

source code


This class adds some convenience functions to the regular Datafram class

Nested Classes [hide private]

Inherited from pandas.core.frame.DataFrame (private): _constructor_sliced

Instance Methods [hide private]
 
__allStrings(self, keys=None) source code
 
__init__(self, *args, **kwargs)
Adds no data.
source code
 
__integrateInternal(self, columns) source code
 
addData(self, other, sameIndex=True, mergeIndex=False, prefix=None, suffix=None, allowExtrapolate=False, interpolationMethod='values')
Add data from another DataFrame or Series
source code
 
describe(self, *args, **kwargs)
Adds our own statistics to the regular describe
source code
 
integrate(self, columns=None)
Integrate by using the trapezoid rule.
source code
 
validLength(self, columns=None)
Length were the values are valid (not NaN) Return a dictionary with values.
source code
 
weightedAverage(self, columns=None)
Weighted average.
source code

Inherited from pandas.core.frame.DataFrame: __add__, __and__, __div__, __eq__, __floordiv__, __ge__, __getitem__, __gt__, __iadd__, __idiv__, __imul__, __ipow__, __isub__, __itruediv__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __or__, __pow__, __radd__, __rand__, __rdiv__, __rfloordiv__, __rmod__, __rmul__, __ror__, __rpow__, __rsub__, __rtruediv__, __rxor__, __setitem__, __sub__, __truediv__, __unicode__, __xor__, _repr_fits_horizontal_, _repr_fits_vertical_, _repr_html_, add, all, any, append, apply, applymap, boxplot, combine, combineAdd, combineMult, combine_first, compound, corr, corrwith, count, cov, cummax, cummin, cumprod, cumsum, diff, div, divide, dot, drop_duplicates, dropna, duplicated, eq, eval, first_valid_index, floordiv, ge, get_value, gt, hist, icol, idxmax, idxmin, iget_value, info, insert, irow, isin, iteritems, iterrows, itertuples, join, kurt, kurtosis, last_valid_index, le, lookup, lt, mad, max, mean, median, memory_usage, merge, min, mod, mode, mul, multiply, ne, pivot, pivot_table, plot, pow, prod, product, quantile, query, radd, rank, rdiv, reindex, reindex_axis, rename, reorder_levels, reset_index, rfloordiv, rmod, rmul, rpow, rsub, rtruediv, select_dtypes, sem, set_index, set_value, skew, sort, sort_index, sortlevel, stack, std, sub, subtract, sum, swaplevel, to_csv, to_dict, to_excel, to_gbq, to_html, to_latex, to_panel, to_period, to_records, to_sparse, to_stata, to_string, to_timestamp, to_wide, transpose, truediv, unstack, update, var

Inherited from pandas.core.frame.DataFrame (private): _apply_broadcast, _apply_empty_result, _apply_raw, _apply_standard, _box_col_values, _box_item_values, _combine_const, _combine_frame, _combine_match_columns, _combine_match_index, _combine_series, _combine_series_infer, _compare_frame, _compare_frame_evaluate, _count_level, _ensure_valid_index, _flex_compare_frame, _get_agg_axis, _getitem_array, _getitem_column, _getitem_frame, _getitem_multilevel, _getitem_slice, _info_repr, _init_dict, _init_ndarray, _ixs, _join_compat, _reduce, _reindex_axes, _reindex_columns, _reindex_index, _reindex_multi, _sanitize_column, _set_item, _setitem_array, _setitem_frame, _setitem_slice, _unpickle_frame_compat, _unpickle_matrix_compat

Inherited from pandas.core.generic.NDFrame: __abs__, __array__, __array_wrap__, __bool__, __contains__, __delitem__, __finalize__, __getattr__, __getstate__, __hash__, __invert__, __iter__, __neg__, __nonzero__, __setattr__, __setstate__, abs, add_prefix, add_suffix, align, as_blocks, as_matrix, asfreq, astype, at_time, between_time, bfill, bool, clip, clip_lower, clip_upper, consolidate, convert_objects, copy, drop, equals, ffill, fillna, filter, first, get, get_dtype_counts, get_ftype_counts, get_values, groupby, head, interpolate, isnull, iterkv, keys, last, load, mask, notnull, pct_change, pop, reindex_like, rename_axis, replace, resample, save, select, set_axis, shift, slice_shift, squeeze, swapaxes, tail, take, to_clipboard, to_dense, to_hdf, to_json, to_msgpack, to_pickle, to_sql, truncate, tshift, tz_convert, tz_localize, where, xs

Inherited from pandas.core.generic.NDFrame (private): _agg_by_level, _align_frame, _align_series, _check_inplace_setting, _check_is_chained_assignment_possible, _check_setitem_copy, _clear_item_cache, _consolidate_inplace, _construct_axes_dict, _construct_axes_dict_for_slice, _construct_axes_from_arguments, _expand_axes, _get_axis, _get_axis_name, _get_axis_number, _get_axis_resolvers, _get_block_manager_axis, _get_bool_data, _get_cacher, _get_index_resolvers, _get_item_cache, _get_numeric_data, _iget_item_cache, _indexed_same, _init_mgr, _local_dir, _maybe_cache_changed, _maybe_update_cacher, _needs_reindex_multi, _protect_consolidate, _reindex_axis, _reindex_with_indexers, _set_as_cached, _set_axis, _set_is_copy, _slice, _update_inplace, _validate_dtype, _xs

Inherited from pandas.core.base.PandasObject: __dir__

Inherited from pandas.core.base.PandasObject (private): _reset_cache

Inherited from pandas.core.base.StringMixin: __bytes__, __repr__, __str__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from pandas.core.frame.DataFrame: from_csv, from_dict, from_items, from_records

Inherited from pandas.core.frame.DataFrame (private): _from_arrays

Inherited from pandas.core.generic.NDFrame (private): _add_numeric_operations, _create_indexer, _from_axes, _setup_axes

Static Methods [hide private]

Inherited from pandas.core.generic.NDFrame (private): _construct_axes_dict_from

Class Variables [hide private]
  validOtherTypes = (<class 'pandas.core.frame.DataFrame'>, <cla...

Inherited from pandas.core.frame.DataFrame: columns, index

Inherited from pandas.core.frame.DataFrame (private): _AXIS_ALIASES, _AXIS_IALIASES, _AXIS_LEN, _AXIS_NAMES, _AXIS_NUMBERS, _AXIS_ORDERS, _AXIS_REVERSED, _AXIS_SLICEMAP, _auto_consolidate, _info_axis_name, _info_axis_number, _stat_axis_name, _stat_axis_number, _typ

Inherited from pandas.core.generic.NDFrame: is_copy

Inherited from pandas.core.generic.NDFrame (private): _at, _iat, _iloc, _internal_names, _internal_names_set, _ix, _loc, _metadata

Properties [hide private]

Inherited from pandas.core.frame.DataFrame: T, axes, shape

Inherited from pandas.core.frame.DataFrame (private): _constructor, _series

Inherited from pandas.core.generic.NDFrame: at, blocks, dtypes, empty, ftypes, iat, iloc, ix, loc, ndim, values

Inherited from pandas.core.generic.NDFrame (private): _get_values, _info_axis, _is_cached, _is_datelike_mixed_type, _is_mixed_type, _is_numeric_mixed_type, _is_view, _stat_axis

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Adds no data. Just passes the arguments to the super-class

Overrides: object.__init__

addData(self, other, sameIndex=True, mergeIndex=False, prefix=None, suffix=None, allowExtrapolate=False, interpolationMethod='values')

source code 

Add data from another DataFrame or Series

Parameters:
  • other - data as Pandas-DataFrame or Series
  • sameIndex - assum both have the same indices. If False the other data will be interpolated to the current indices
  • mergeIndex - make the result indices a mixture of the indices

describe(self, *args, **kwargs)

source code 

Adds our own statistics to the regular describe

Overrides: pandas.core.generic.NDFrame.describe

integrate(self, columns=None)

source code 

Integrate by using the trapezoid rule. Return a dictionary with values.

Parameters:
  • values - list of column names. If unset all are integrated

validLength(self, columns=None)

source code 

Length were the values are valid (not NaN) Return a dictionary with values.

Parameters:
  • values - list of column names. If unset all are integrated

weightedAverage(self, columns=None)

source code 

Weighted average. Return a dictionary with values.

Parameters:
  • values - list of column names. If unset all are integrated

Class Variable Details [hide private]

validOtherTypes

Value:
(<class 'pandas.core.frame.DataFrame'>,
 <class 'pandas.core.series.Series'>)