CastProtocol#

class pandas_utils.utility.CastProtocol(*args, **kwargs)#

Bases: Protocol

Type that as the dtype property and astype method.

Methods Summary

astype(dtype)

Cast this object to a new type.

Methods Documentation

astype(dtype)#

Cast this object to a new type.

Parameters:
  • self (_T) –

  • dtype (dtype) –

Return type:

_T