trashpanda

trashpanda is a collection of helper methods composing tasks around pandas.DataFrames and Series.

Module Attributes

DEFAULT_NA

The default NaN representation used for undefined values.

Functions

add_blank_rows()

Adds blank rows into a Series or DataFrame with numpy.nan by default.

add_columns_to_dataframe(frame_to_enlarge, ...)

Adds columns to a dataframe.

add_missing_indexes_to_series(target_series, ...)

Adds different (missing) indexes to series.

cut_after()

Cuts a dataframe dropping the part after the cutting index.

cut_before(source_to_cut, cutting_index)

Cuts a dataframe dropping the part after the cutting index.

cut_dataframe_after_max(frame_to_cut[, ...])

Cuts a DataFrame after the maximum value of its condition column.

cut_series_after_max(series_to_cut)

Cuts a Series after its maximum value.

find_index_of_value_in_series(source_series, ...)

Finds the index of an value within a Series.

get_intersection()

Intersects Series or DataFrame by requested indexes.

get_unique_index_positions()

Determines positions of unique indexes from a Series or DataFrame.

meld_along_columns(left, right[, ...])

Melds two DataFrames of Series into a single DataFrame with a common index.

override_left_with_right_dataframe(...)

Overrides overlapping items of left with right.

override_left_with_right_series(left_target, ...)

Overrides overlapping items of left with right.

remove_duplicated_indexes()

Removes rows of duplicated indexes from a DataFrame.