pandas.Series.info

pandas 3.1.1 · Series and accessors · method

Print a Series summary with its index, dtype, non-null count and memory use.

Call syntax

Series.info(verbose=None, buf=None, max_cols=None, memory_usage=None, show_counts=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
verbose Optional
Positional or keyword
Default None
bool

Request more detailed diagnostic output where supported.

buf Optional
Positional or keyword
Default None
writable buffer

Supply a destination file-like buffer, or use the default to return or print the output as documented.

max_cols Optional
Positional or keyword
Default None
int

Accepted for compatibility with DataFrame.info. It has no effect on Series output.

memory_usage Optional
Positional or keyword
Default None
bool, str
show_counts Optional
Positional or keyword
Default True
bool

Returns

Prints the summary and returns None.