:py:mod:`toypandas.series` ========================== .. py:module:: toypandas.series .. autoapi-nested-parse:: Descizione modulo Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: toypandas.series.Series toypandas.series.Locating_s .. py:class:: Series(*args) Bases: :py:obj:`pandas.core.series.Series` Represenation of a series of values (usually a column). .. py:property:: indexlocate :type: Locating_s Locate an element by index. :returns: The element. .. py:method:: __add__(other) Sums two series row by row. :param other: The other series to sum. :returns: A new series in which each value is the sum of the two rows. .. py:method:: __getitem__(match) Returns only the rows matching the argument. :param match: A Series of booleans (True/False). If an element is True, it will be returned. :returns: A new Series with only the elements matching the argument. .. py:method:: apply(function) Apply a function of each value of the Series. :param function: Function to apply to each element. :returns: The resulting Series. .. py:method:: append(elem) Appends a value at the end of the Series. :param elem: The value to append. .. py:method:: drop(index=None) Removes a given element from the Series. :param elem: The index of the element to remove. If not specified, remove the last element. .. py:method:: astype(dtype) Cast a Series to type ``dtype``. :param dtype: Data type :returns: This Series, properly cast. .. py:method:: dropna() Removes all NaN values. :returns: This Series, without NaN values. .. py:method:: show() descr .. py:method:: fillna(value) Fill missing values with the given value. :param value: Value to use to fill holes. .. py:class:: Locating_s(val) Bases: :py:obj:`pandas.core.indexing._iLocIndexer` Index-based locator for Series .. py:method:: __getitem__(*args) Return the element(s) in the required position(s). :param args: Index of the row to return or condition to apply to whole Series. :returns: The element(s) in the required position(s). .. py:method:: __setitem__(*args) Set the given position to the given value. :param args: Position and new value. :returns: The Series.