Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2024-01-15 21:33:45
Size: 625
Comment: Added methods
Revision 4 as of 2024-01-15 21:40:09
Size: 709
Comment: Added examples
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The type is fully specified as `pandas.core.frame.DataFrame`. The [[Python/Pandas/Types|type]] is fully specified as `pandas.core.frame.DataFrame`.
Line 31: Line 31:
||'''Method'''||'''Meaning''' ||
||`head` ||return a new `DataFrame` of the first N rows ||
||`squeeze` ||return a [[Python/Pandas/Series|Series]] representation of the frame||
||`tail` ||return a new `DataFrame` of the last N rows ||
||'''Method'''||'''Meaning''' ||'''Example'''||
||`head` ||return a new `DataFrame` of the first N rows  ||`df.head(5)` ||
||`squeeze` ||return a [[Python/Pandas/Series|Series]] representation of the frame||             ||
||`tail` ||return a new `DataFrame` of the last N rows ||`df.tail(5)` ||

Python Pandas DataFrame

The type is fully specified as pandas.core.frame.DataFrame.


Example


Data Model


Attrbibutes


Methods

Method

Meaning

Example

head

return a new DataFrame of the first N rows

df.head(5)

squeeze

return a Series representation of the frame

tail

return a new DataFrame of the last N rows

df.tail(5)


CategoryRicottone

Python/Pandas/DataFrame (last edited 2024-01-16 03:46:59 by DominicRicottone)