:py:mod:`toypandas.dataframe` ============================= .. py:module:: toypandas.dataframe .. autoapi-nested-parse:: Descrizione modulo Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: toypandas.dataframe.Dataframe toypandas.dataframe.Locating Functions ~~~~~~~~~ .. autoapisummary:: toypandas.dataframe.concat toypandas.dataframe.read_csv .. py:function:: concat(*args) Concatenate an arbitrary number of Series or Dataframes into a single Dataframe. :param arg: Series or Dataframes. :returns: A single Dataframe, containing all values provided. .. py:function:: read_csv(csv, **kwargs) Read data from a csv file. :param csv: Path to the csv file. :param kwargs: Descrizione 2. :returns: A Dataframe reprentation of the csv. .. py:class:: Dataframe(*args) Bases: :py:obj:`pandas.core.frame.DataFrame` Representation of a table, composed of rows and columns. .. py:property:: indexlocate :type: Locating Locate a row by index. :returns: The row (Series). .. py:method:: show() Print the contents of the Dataframe to screen .. py:method:: append(other) Appends the values of ``other`` to the current Dataframe. If ``other`` is a Series, add a single row at the end with the values contained in the Series, otherwise it works exactly like ``concat``. If appending data of different sizes, excess values will be ignored, while missing values will become NaN. :param other: Series or Dataframe to append. .. py:method:: drop(item) Drop the specified row or column :param item: Number of the row or name of the column. .. py:method:: dropna(index) Drop all rows or columns containing at least one Null or NaN value. :param index: If 0 drop by row, if 1 drop by column. :returns: A Dataframe (or Series, if only one column remains) without null values. .. py:method:: drop_duplicates() Remove duplicate rows from a Dataframe. :returns: A Dataframe with no duplicate rows, or a Series if only one row remained. .. py:method:: isnull() Returns a Dataframe indicating which values are missing (NaN or None). :returns: a Dataframe indicating which values are missing. .. py:method:: rename(old_name, new_name) Rename a column from ``old_name`` to ``new_name``. :param old_name: The old name of the column. :param new_name: The new name of the column. .. py:class:: Locating(val) Bases: :py:obj:`pandas.core.indexing._iLocIndexer` Index-based locator for Dataframes .. 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 Dataframe. :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 Dataframe.