Title: Theory / Important / CS / Programming / Python / SciPy / Panda
Tags: seen_description automatedNewLineAfterCommaSpace
On every note of this deck, unless a note says otherwise:
Page: https://colab.research.google.com/notebooks/mlcc/intro_to_pandas.ipynb

Name: Panda
Definition: a column-oriented data analysis API
Page: https://colab.research.google.com/notebooks/mlcc/intro_to_pandas.ipynb#scrollTo=hMqWDc_m6rUC
Context: ScipPy
Abbreviation: pd

Name: DataFrame
Page: https://colab.research.google.com/notebooks/mlcc/intro_to_pandas.ipynb
Context: Panda
Intuition: a relational data table, with rows and named columns.

Name: Series
Page: https://colab.research.google.com/notebooks/mlcc/intro_to_pandas.ipynb
Context: Panda
Intuition: a single column of a DataFrame

Instruction: Series(
  [t_1,
  ...,
  t_n]
)
Context: Panda
Returns: A new series with objects as in t_i

Instruction: DataFrame(
  {
'title_1': serie_1,
   ...
}
)
Language: Python
Context: Panda
Returns: A data frame, with columns title_i with content serie_i, filed with NA/NaN if they are less long than other columns

Instruction: read_csv(foo)
Context: Panda
Returns: Read into a dataframe the content of csv file foo,

Instruction: df.describe()
Effect: Print a table containing various statistical values for the different columns of df
Language: Panda
Variables: df a dataframe

Instruction: df.head()
Effect: Print the five first lines of df
Language: Panda
Variables: df a dataframe

Instruction: df.hist(foo)
Effect: Print a histogram with the values of column foo
Language: Panda
Variables: df a dataframe

Instruction: df['foo']
Effect: The column named 'foo' of df
Language: Panda
Variables: df a dataframe

Instruction: df[i:j]
Effect: The dataframe restricted with elements between position i and j of df
Language: Panda
Variables: df a dataframe

Instruction: arithmetic operation on s
Effect: Apply the arithmetic operation on each element of s
Context: Panda
Variables: s a series

Instruction: s.apply(f)
Language: Panda
Returns: The Series with f(s[i])
Variables: s a series

Name: The index of the data frame
Definition: A fixed map from ints to the lines. Created at dataframe/series creation
Page: https://colab.research.google.com/notebooks/mlcc/intro_to_pandas.ipynb
Context: Panda, DataFrame

Instruction: df.reindex(
  [i_1, ...,
  i_n]
)
Effect: Change the df so that it shows lines with index i_1, ..., i_n in this order
Language: Panda
Context: DataFrame