Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2024-01-15 21:19:26
Size: 384
Comment: Initial commit
Revision 5 as of 2024-01-15 22:31:01
Size: 669
Comment: Clarify that squeeze returns a view
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

The [[Python/Pandas/Types|type]] is fully specified as `pandas.core.frame.DataFrame`.
Line 29: Line 31:
||'''Method'''||'''Meaning'''           ||
||`squeeze` ||return a [[Python/Pandas/Series|Series]] representation of the frame||
||'''Method'''||'''Meaning''' ||'''Example'''||
||`head` ||return a new `DataFrame` of the first N rows ||`df.head(5)`
||
||`squeeze` ||return a [[Python/Pandas/Series|Series]] view 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 view of the frame

tail

return a new DataFrame of the last N rows

df.tail(5)


CategoryRicottone