id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
23,800
andymccurdy/redis-py
andymccurdy_redis-py/redis/event.py
redis.event.RegisterReAuthForSingleConnection
from redis.credentials import CredentialProvider, StreamingCredentialProvider class RegisterReAuthForSingleConnection(EventListenerInterface): """ Listener that registers a re-authentication callback for single connection. Required by :class:`StreamingCredentialProvider`. """ def __init__(self): ...
class RegisterReAuthForSingleConnection(EventListenerInterface): ''' Listener that registers a re-authentication callback for single connection. Required by :class:`StreamingCredentialProvider`. ''' def __init__(self): pass def listen(self, event: AfterSingleConnectionInstantiatio...
7
1
5
0
5
0
1
0.13
1
5
4
0
6
1
6
27
43
7
32
8
25
4
23
8
16
3
5
2
8
23,801
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.AskError
class AskError(ResponseError): """ Error indicated ASK error received from cluster. When a slot is set as MIGRATING, the node will accept all queries that pertain to this hash slot, but only if the key in question exists, otherwise the query is forwarded using a -ASK redirection to the node that ...
class AskError(ResponseError): ''' Error indicated ASK error received from cluster. When a slot is set as MIGRATING, the node will accept all queries that pertain to this hash slot, but only if the key in question exists, otherwise the query is forwarded using a -ASK redirection to the node that ...
2
2
8
0
7
1
1
1.75
1
1
0
1
1
6
1
11
24
2
8
8
6
14
8
8
6
1
5
0
1
23,802
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.AuthenticationError
class AuthenticationError(ConnectionError): pass
class AuthenticationError(ConnectionError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
5
0
0
23,803
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.AuthenticationWrongNumberOfArgsError
class AuthenticationWrongNumberOfArgsError(ResponseError): """ An error to indicate that the wrong number of args were sent to the AUTH command """ pass
class AuthenticationWrongNumberOfArgsError(ResponseError): ''' An error to indicate that the wrong number of args were sent to the AUTH command ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
10
7
1
2
1
1
4
2
1
1
0
5
0
0
23,804
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.AuthorizationError
class AuthorizationError(ConnectionError): pass
class AuthorizationError(ConnectionError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
5
0
0
23,805
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.ChildDeadlockedError
class ChildDeadlockedError(Exception): """Error indicating that a child process is deadlocked after a fork()""" pass
class ChildDeadlockedError(Exception): '''Error indicating that a child process is deadlocked after a fork()''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
10
3
0
2
1
1
1
2
1
1
0
3
0
0
23,806
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.ClusterCrossSlotError
class ClusterCrossSlotError(ResponseError): """ Error indicated CROSSSLOT error received from cluster. A CROSSSLOT error is generated when keys in a request don't hash to the same slot. """ message = "Keys in request don't hash to the same slot"
class ClusterCrossSlotError(ResponseError): ''' Error indicated CROSSSLOT error received from cluster. A CROSSSLOT error is generated when keys in a request don't hash to the same slot. ''' pass
1
1
0
0
0
0
0
2.5
1
0
0
0
0
0
0
10
8
1
2
2
1
5
2
2
1
0
5
0
0
23,807
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.ClusterDownError
class ClusterDownError(ClusterError, ResponseError): """ Error indicated CLUSTERDOWN error received from cluster. By default Redis Cluster nodes stop accepting queries if they detect there is at least a hash slot uncovered (no available node is serving it). This way if the cluster is partially down ...
class ClusterDownError(ClusterError, ResponseError): ''' Error indicated CLUSTERDOWN error received from cluster. By default Redis Cluster nodes stop accepting queries if they detect there is at least a hash slot uncovered (no available node is serving it). This way if the cluster is partially down ...
2
1
3
0
3
0
1
2.25
2
0
0
1
1
2
1
11
14
1
4
4
2
9
4
4
2
1
5
0
1
23,808
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.ClusterError
class ClusterError(RedisError): """ Cluster errors occurred multiple times, resulting in an exhaustion of the command execution TTL """ pass
class ClusterError(RedisError): ''' Cluster errors occurred multiple times, resulting in an exhaustion of the command execution TTL ''' pass
1
1
0
0
0
0
0
2
1
0
0
1
0
0
0
10
7
1
2
1
1
4
2
1
1
0
4
0
0
23,809
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.LockError
class LockError(RedisError, ValueError): """Errors acquiring or releasing a lock""" def __init__(self, message=None, lock_name=None): self.message = message self.lock_name = lock_name
class LockError(RedisError, ValueError): '''Errors acquiring or releasing a lock''' def __init__(self, message=None, lock_name=None): pass
2
1
3
0
3
0
1
0.75
2
0
0
1
1
2
1
12
8
1
4
4
2
3
4
4
2
1
4
0
1
23,810
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.LockNotOwnedError
class LockNotOwnedError(LockError): """Error trying to extend or release a lock that is not owned (anymore)""" pass
class LockNotOwnedError(LockError): '''Error trying to extend or release a lock that is not owned (anymore)''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
12
3
0
2
1
1
1
2
1
1
0
5
0
0
23,811
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.MasterDownError
class MasterDownError(ClusterDownError): """ Error indicated MASTERDOWN error received from cluster. Link with MASTER is down and replica-serve-stale-data is set to 'no'. """ pass
class MasterDownError(ClusterDownError): ''' Error indicated MASTERDOWN error received from cluster. Link with MASTER is down and replica-serve-stale-data is set to 'no'. ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
11
7
1
2
1
1
4
2
1
1
0
6
0
0
23,812
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.MaxConnectionsError
class MaxConnectionsError(ConnectionError): """ Raised when a connection pool has reached its max_connections limit. This indicates pool exhaustion rather than an actual connection failure. """ pass
class MaxConnectionsError(ConnectionError): ''' Raised when a connection pool has reached its max_connections limit. This indicates pool exhaustion rather than an actual connection failure. ''' pass
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
10
1
0
1
1
1
0
2
1
1
0
5
0
0
23,813
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.ModuleError
class ModuleError(ResponseError): pass
class ModuleError(ResponseError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
5
0
0
23,814
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.MovedError
class MovedError(AskError): """ Error indicated MOVED error received from cluster. A request sent to a node that doesn't serve this key will be replayed with a MOVED error that points to the correct node. """ pass
class MovedError(AskError): ''' Error indicated MOVED error received from cluster. A request sent to a node that doesn't serve this key will be replayed with a MOVED error that points to the correct node. ''' pass
1
1
0
0
0
0
0
2.5
1
0
0
0
0
0
0
11
8
1
2
1
1
5
2
1
1
0
6
0
0
23,815
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.NoPermissionError
class NoPermissionError(ResponseError): pass
class NoPermissionError(ResponseError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
5
0
0
23,816
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.OutOfMemoryError
class OutOfMemoryError(ResponseError): """ Indicates the database is full. Can only occur when either: * Redis maxmemory-policy=noeviction * Redis maxmemory-policy=volatile* and there are no evictable keys For more information see `Memory optimization in Redis <https://redis.io/docs/management/...
class OutOfMemoryError(ResponseError): ''' Indicates the database is full. Can only occur when either: * Redis maxmemory-policy=noeviction * Redis maxmemory-policy=volatile* and there are no evictable keys For more information see `Memory optimization in Redis <https://redis.io/docs/management/o...
1
1
0
0
0
0
0
3
1
0
0
0
0
0
0
10
10
2
2
1
1
6
2
1
1
0
5
0
0
23,817
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.RedisClusterException
class RedisClusterException(Exception): """ Base exception for the RedisCluster client """ pass
class RedisClusterException(Exception): ''' Base exception for the RedisCluster client ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
1
0
0
0
10
6
1
2
1
1
3
2
1
1
0
3
0
0
23,818
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.SlotNotCoveredError
class SlotNotCoveredError(RedisClusterException): """ This error only happens in the case where the connection pool will try to fetch what node that is covered by a given slot. If this error is raised the client should drop the current node layout and attempt to reconnect and refresh the node layou...
class SlotNotCoveredError(RedisClusterException): ''' This error only happens in the case where the connection pool will try to fetch what node that is covered by a given slot. If this error is raised the client should drop the current node layout and attempt to reconnect and refresh the node layout...
1
1
0
0
0
0
0
3
1
0
0
0
0
0
0
10
10
2
2
1
1
6
2
1
1
0
4
0
0
23,819
andymccurdy/redis-py
andymccurdy_redis-py/redis/exceptions.py
redis.exceptions.TryAgainError
class TryAgainError(ResponseError): """ Error indicated TRYAGAIN error received from cluster. Operations on keys that don't exist or are - during resharding - split between the source and destination nodes, will generate a -TRYAGAIN error. """ def __init__(self, *args, **kwargs): pass
class TryAgainError(ResponseError): ''' Error indicated TRYAGAIN error received from cluster. Operations on keys that don't exist or are - during resharding - split between the source and destination nodes, will generate a -TRYAGAIN error. ''' def __init__(self, *args, **kwargs): pass
2
1
2
0
2
0
1
1.67
1
0
0
0
1
0
1
11
9
1
3
2
1
5
3
2
1
1
5
0
1
23,820
andymccurdy/redis-py
andymccurdy_redis-py/redis/lock.py
redis.lock.Lock
import uuid import threading from types import SimpleNamespace, TracebackType from redis.exceptions import LockError, LockNotOwnedError from typing import Optional, Type from redis.typing import Number import time as mod_time class Lock: """ A shared, distributed Lock. Using Redis for locking allows the Lock ...
class Lock: ''' A shared, distributed Lock. Using Redis for locking allows the Lock to be shared across processes and/or machines. It's left to the user to resolve deadlock issues and make sure multiple clients play nicely together. ''' def __init__(self, redis, name: str, timeout: Optiona...
15
8
17
1
10
6
3
0.53
0
8
2
0
14
8
14
14
313
32
184
59
149
97
103
39
88
10
0
2
40
23,821
andymccurdy/redis-py
andymccurdy_redis-py/redis/ocsp.py
redis.ocsp.OCSPVerifier
import ssl import cryptography.hazmat.primitives.hashes from cryptography import hazmat, x509 import requests from cryptography.x509 import ocsp from urllib.parse import urljoin, urlparse from cryptography.hazmat import backends from redis.exceptions import AuthorizationError, ConnectionError import base64 class OCSPV...
class OCSPVerifier: '''A class to verify ssl sockets for RFC6960/RFC6961. This can be used when using direct validation of OCSP responses and certificate revocations. @see https://datatracker.ietf.org/doc/html/rfc6960 @see https://datatracker.ietf.org/doc/html/rfc6961 ''' def __init__(self, so...
9
8
16
2
10
3
2
0.39
0
3
1
0
8
4
8
8
139
24
83
34
74
32
66
34
57
4
0
2
17
23,822
andymccurdy/redis-py
andymccurdy_redis-py/redis/retry.py
redis.retry.Retry
from redis.exceptions import ConnectionError, TimeoutError import socket from typing import TYPE_CHECKING, Any, Callable, Generic, Iterable, Tuple, Type, TypeVar from time import sleep class Retry(AbstractRetry[Exception]): __hash__ = AbstractRetry.__hash__ def __init__(self, backoff: 'AbstractBackoff', retri...
class Retry(AbstractRetry[Exception]): def __init__(self, backoff: 'AbstractBackoff', retries: int, supported_errors: Tuple[Type[Exception], ...]=(ConnectionError, TimeoutError, socket.timeout)): pass def __eq__(self, other: Any) -> bool: pass def call_with_retry(self, do: Callable[[], T...
4
1
18
0
12
5
2
0.45
0
7
0
0
3
3
3
3
58
3
38
25
19
17
21
9
17
5
0
3
7
23,823
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.MasterNotFoundError
from redis.exceptions import ConnectionError, ReadOnlyError, ResponseError, TimeoutError class MasterNotFoundError(ConnectionError): pass
class MasterNotFoundError(ConnectionError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
5
0
0
23,824
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.Sentinel
from redis.client import Redis import random from redis.commands import SentinelCommands from redis.exceptions import ConnectionError, ReadOnlyError, ResponseError, TimeoutError class Sentinel(SentinelCommands): """ Redis Sentinel cluster client >>> from redis.sentinel import Sentinel >>> sentinel = S...
class Sentinel(SentinelCommands): ''' Redis Sentinel cluster client >>> from redis.sentinel import Sentinel >>> sentinel = Sentinel([('localhost', 26379)], socket_timeout=0.1) >>> master = sentinel.master_for('mymaster', socket_timeout=0.1) >>> master.set('foo', 'bar') >>> slave = sentinel....
10
7
19
2
13
5
3
0.61
1
11
4
0
9
5
9
22
211
28
114
51
85
69
73
31
63
6
1
2
26
23,825
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.SentinelConnectionPool
from redis.connection import Connection, ConnectionPool, SSLConnection class SentinelConnectionPool(ConnectionPool): """ Sentinel backed connection pool. If ``check_connection`` flag is set to True, SentinelManagedConnection sends a PING command right after establishing the connection. """ de...
class SentinelConnectionPool(ConnectionPool): ''' Sentinel backed connection pool. If ``check_connection`` flag is set to True, SentinelManagedConnection sends a PING command right after establishing the connection. ''' def __init__(self, service_name, sentinel_manager, **kwargs): pass...
9
2
6
0
6
0
1
0.13
1
5
3
0
7
5
7
23
59
8
45
17
36
6
26
16
18
2
1
0
9
23,826
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.SentinelConnectionPoolProxy
import random import weakref class SentinelConnectionPoolProxy: def __init__(self, connection_pool, is_master, check_connection, service_name, sentinel_manager): self.connection_pool_ref = weakref.ref(connection_pool) self.is_master = is_master self.check_connection = check_connection ...
class SentinelConnectionPoolProxy: def __init__(self, connection_pool, is_master, check_connection, service_name, sentinel_manager): pass def reset(self): pass def get_master_address(self): pass def rotate_slaves(self): pass
5
0
11
0
10
1
3
0.07
0
3
2
0
4
7
4
4
46
3
40
24
28
3
33
17
28
5
0
2
10
23,827
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.SentinelManagedConnection
from redis.exceptions import ConnectionError, ReadOnlyError, ResponseError, TimeoutError from typing import Optional from redis.connection import Connection, ConnectionPool, SSLConnection class SentinelManagedConnection(Connection): def __init__(self, **kwargs): self.connection_pool = kwargs.pop('connecti...
class SentinelManagedConnection(Connection): def __init__(self, **kwargs): pass def __repr__(self): pass def connect_to(self, address): pass def _connect_retry(self): pass def connect_to(self, address): pass def read_response(self, disable_decoding=...
7
0
10
0
9
1
3
0.13
1
6
2
1
6
3
6
56
63
5
53
19
40
7
39
13
32
5
3
3
15
23,828
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.SentinelManagedSSLConnection
from redis.connection import Connection, ConnectionPool, SSLConnection class SentinelManagedSSLConnection(SentinelManagedConnection, SSLConnection): pass
class SentinelManagedSSLConnection(SentinelManagedConnection, SSLConnection): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
59
2
0
2
1
1
0
2
1
1
0
4
0
0
23,829
andymccurdy/redis-py
andymccurdy_redis-py/redis/sentinel.py
redis.sentinel.SlaveNotFoundError
from redis.exceptions import ConnectionError, ReadOnlyError, ResponseError, TimeoutError class SlaveNotFoundError(ConnectionError): pass
class SlaveNotFoundError(ConnectionError): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
5
0
0
23,830
andymccurdy/redis-py
andymccurdy_redis-py/redis/typing.py
redis.typing.ClusterCommandsProtocol
class ClusterCommandsProtocol(CommandsProtocol): encoder: 'Encoder'
class ClusterCommandsProtocol(CommandsProtocol): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
25
2
0
2
1
1
0
2
1
1
0
6
0
0
23,831
andymccurdy/redis-py
andymccurdy_redis-py/redis/typing.py
redis.typing.CommandsProtocol
from typing import TYPE_CHECKING, Any, Awaitable, Iterable, Mapping, Protocol, Type, TypeVar, Union class CommandsProtocol(Protocol): def execute_command(self, *args, **options) -> ResponseT: ...
class CommandsProtocol(Protocol): def execute_command(self, *args, **options) -> ResponseT: pass
2
0
1
0
1
0
1
0
1
0
0
16
1
0
1
25
4
1
3
2
2
0
4
2
2
1
5
0
1
23,832
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.BoolVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr from typing import Any, Dict, List, Optional, Tuple, Union class BoolVars(BaseModel): n_obs: int = 3 imbalance_threshold: float = 0.5 mappings: Dict[str, bool] = {'t': True, 'f': False, 'yes': True, 'no': False, 'y': True, 'n': False, 'tru...
class BoolVars(BaseModel): pass
1
0
0
0
0
0
0
0.08
1
0
0
0
0
0
0
50
15
1
13
4
12
1
4
4
3
0
5
0
0
23,833
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.CatFrequencyPlot
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr from typing import Any, Dict, List, Optional, Tuple, Union class CatFrequencyPlot(BaseModel): show: bool = True type: str = 'bar' max_unique: int = 10 colors: Optional[List[str]] = None
class CatFrequencyPlot(BaseModel): pass
1
0
0
0
0
0
0
1.4
1
0
0
0
0
0
0
50
12
2
5
5
4
7
5
5
4
0
5
0
0
23,834
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.CatVars
from typing import Any, Dict, List, Optional, Tuple, Union from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class CatVars(BaseModel): length: bool = True characters: bool = True words: bool = True cardinality_threshold: int = 50 percentage_cat_threshold: float = 0.5 imbalance...
class CatVars(BaseModel): pass
1
0
0
0
0
0
0
0.23
1
0
0
0
0
0
0
50
16
0
13
13
12
3
13
13
12
0
5
0
0
23,835
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Correlation
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Correlation(BaseModel): key: str = '' calculate: bool = Field(default=True) warn_high_correlations: int = Field(default=10) threshold: float = Field(default=0.5) n_bins: int = Field(default=10)
class Correlation(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
6
0
6
6
5
0
6
6
5
0
5
0
0
23,836
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.CorrelationPlot
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class CorrelationPlot(BaseModel): cmap: str = 'RdBu' bad: str = '#000000'
class CorrelationPlot(BaseModel): pass
1
0
0
0
0
0
0
0.33
1
0
0
0
0
0
0
50
3
0
3
3
2
1
3
3
2
0
5
0
0
23,837
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Correlations
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Correlations(BaseModel): pearson: Correlation = Correlation(key='pearson') spearman: Correlation = Correlation(key='spearman') auto: Correlation = Correlation(key='auto')
class Correlations(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
4
0
4
4
3
0
4
4
3
0
5
0
0
23,838
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Dataset
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Dataset(BaseModel): """Metadata of the dataset""" description: str = '' creator: str = '' author: str = '' copyright_holder: str = '' copyright_year: str = '' url: str = ''
class Dataset(BaseModel): '''Metadata of the dataset''' pass
1
1
0
0
0
0
0
0.14
1
0
0
0
0
0
0
50
9
1
7
7
6
1
7
7
6
0
5
0
0
23,839
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Duplicates
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Duplicates(BaseModel): head: int = 10 key: str = '# duplicates'
class Duplicates(BaseModel): pass
1
0
0
0
0
0
0
0.33
1
0
0
0
0
0
0
50
3
0
3
3
2
1
3
3
2
0
5
0
0
23,840
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.FileVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class FileVars(BaseModel): active: bool = False
class FileVars(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
2
0
2
2
1
0
2
2
1
0
5
0
0
23,841
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Histogram
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Histogram(BaseModel): bins: int = 50 max_bins: int = 250 x_axis_labels: bool = True density: bool = False
class Histogram(BaseModel): pass
1
0
0
0
0
0
0
0.4
1
0
0
0
0
0
0
50
7
0
5
5
4
2
5
5
4
0
5
0
0
23,842
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Html
from typing import Any, Dict, List, Optional, Tuple, Union from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Html(BaseModel): style: Style = Style() navbar_show: bool = True minify_html: bool = True use_local_assets: bool = True inline: bool = True assets_prefix: Optiona...
class Html(BaseModel): pass
1
0
0
0
0
0
0
0.78
1
0
0
0
0
0
0
50
23
7
9
9
8
7
9
9
8
0
5
0
0
23,843
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Iframe
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Iframe(BaseModel): height: str = '800px' width: str = '100%' attribute: IframeAttribute = IframeAttribute.srcdoc
class Iframe(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
4
0
4
4
3
0
4
4
3
0
5
0
0
23,844
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.IframeAttribute
from enum import Enum class IframeAttribute(Enum): src = 'src' srcdoc = 'srcdoc'
class IframeAttribute(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
23,845
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.ImageType
from enum import Enum class ImageType(Enum): svg = 'svg' png = 'png'
class ImageType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
23,846
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.ImageVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class ImageVars(BaseModel): active: bool = False exif: bool = True hash: bool = True
class ImageVars(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
4
0
4
3
3
0
4
3
3
0
5
0
0
23,847
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Interactions
from typing import Any, Dict, List, Optional, Tuple, Union from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Interactions(BaseModel): continuous: bool = True targets: List[str] = []
class Interactions(BaseModel): pass
1
0
0
0
0
0
0
0.33
1
0
0
0
0
0
0
50
5
1
3
3
2
1
3
3
2
0
5
0
0
23,848
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.MissingPlot
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class MissingPlot(BaseModel): force_labels: bool = True cmap: str = 'RdBu'
class MissingPlot(BaseModel): pass
1
0
0
0
0
0
0
0.33
1
0
0
0
0
0
0
50
4
0
3
3
2
1
3
3
2
0
5
0
0
23,849
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Notebook
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Notebook(BaseModel): """When in a Jupyter notebook""" iframe: Iframe = Iframe()
class Notebook(BaseModel): '''When in a Jupyter notebook''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
50
4
1
2
2
1
1
2
2
1
0
5
0
0
23,850
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.NumVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr from typing import Any, Dict, List, Optional, Tuple, Union class NumVars(BaseModel): quantiles: List[float] = [0.05, 0.25, 0.5, 0.75, 0.95] skewness_threshold: int = 20 low_categorical_threshold: int = 5 chi_squared_threshold: float = ...
class NumVars(BaseModel): pass
1
0
0
0
0
0
0
0.2
1
0
0
0
0
0
0
50
6
0
5
5
4
1
5
5
4
0
5
0
0
23,851
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.PathVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class PathVars(BaseModel): active: bool = False
class PathVars(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
2
0
2
2
1
0
2
2
1
0
5
0
0
23,852
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Plot
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr from typing import Any, Dict, List, Optional, Tuple, Union from pathlib import Path class Plot(BaseModel): missing: MissingPlot = MissingPlot() image_format: ImageType = ImageType.svg correlation: CorrelationPlot = CorrelationPlot() dp...
class Plot(BaseModel): pass
1
0
0
0
0
0
0
0.11
1
0
0
0
0
0
0
50
9
0
9
9
8
1
9
9
8
0
5
0
0
23,853
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Report
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Report(BaseModel): precision: int = 8
class Report(BaseModel): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
50
3
0
2
2
1
1
2
2
1
0
5
0
0
23,854
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Samples
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Samples(BaseModel): head: int = 10 tail: int = 10 random: int = 0
class Samples(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
4
0
4
4
3
0
4
4
3
0
5
0
0
23,855
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Settings
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr import yaml from typing import Any, Dict, List, Optional, Tuple, Union from pathlib import Path class Settings(BaseSettings): class Config: env_prefix = 'profile_' title: str = 'YData Profiling Report' dataset: Dataset = Dataset()...
class Settings(BaseSettings): class Config: def update(self, updates: dict) -> 'Settings': pass @staticmethod def from_file(config_file: Union[Path, str]) -> 'Settings': '''Create a Settings object from a yaml file. Args: config_file: yaml file path Returns...
5
1
8
1
4
3
1
0.34
1
3
0
1
1
0
2
54
82
19
47
33
42
16
35
31
31
1
6
1
2
23,856
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Settings.Config
from typing import Any, Dict, List, Optional, Tuple, Union class Config: arg_groups: Dict[str, Any] = {'sensitive': {'samples': None, 'duplicates': None, 'vars': {'cat': {'redact': True}, 'text': {'redact': True}}}, 'flatly_theme': {'html': {'style': {'theme': Theme.flatly, 'primary_color': '#2c3e50'}}}, 'united_t...
class Config: @staticmethod def get_arg_groups(key: str) -> dict: pass @staticmethod def shorthands(kwargs: dict, split: bool=True) -> Tuple[dict, dict]: pass
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
0
0
0
23,857
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.SparkSettings
from typing import Any, Dict, List, Optional, Tuple, Union class SparkSettings(Settings): """ Setting class with the standard report configuration for Spark DataFrames All the supported analysis are set to true """ vars: Univariate = Univariate() vars.num.low_categorical_threshold = 0 infer...
class SparkSettings(Settings): ''' Setting class with the standard report configuration for Spark DataFrames All the supported analysis are set to true ''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
54
31
7
20
7
19
4
12
7
11
0
7
0
0
23,858
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Style
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr from typing import Any, Dict, List, Optional, Tuple, Union class Style(BaseModel): @property def primary_color(self) -> str: return self.primary_colors[0] primary_colors: List[str] = ['#0d6efd', '#dc3545', '#198754'] logo: str...
class Style(BaseModel): @property def primary_color(self) -> str: pass
3
0
3
0
2
1
1
0.88
1
1
0
0
1
0
1
51
18
4
8
7
5
7
7
6
5
1
5
0
1
23,859
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.TextVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class TextVars(BaseModel): length: bool = True words: bool = True characters: bool = True redact: bool = False
class TextVars(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
5
0
5
5
4
0
5
5
4
0
5
0
0
23,860
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Theme
from enum import Enum class Theme(Enum): united = 'united' flatly = 'flatly' cosmo = 'cosmo' simplex = 'simplex'
class Theme(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
5
0
5
5
4
0
5
5
4
0
4
0
0
23,861
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.TimeseriesVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr from typing import Any, Dict, List, Optional, Tuple, Union class TimeseriesVars(BaseModel): active: bool = False sortby: Optional[str] = None autocorrelation: float = 0.7 lags: List[int] = [1, 7, 12, 24, 30] significance: float = 0...
class TimeseriesVars(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
9
0
9
9
8
0
9
9
8
0
5
0
0
23,862
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Univariate
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Univariate(BaseModel): num: NumVars = NumVars() text: TextVars = TextVars() cat: CatVars = CatVars() image: ImageVars = ImageVars() bool: BoolVars = BoolVars() path: PathVars = PathVars() file: FileVars = FileVars() ...
class Univariate(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
10
0
10
10
9
0
10
10
9
0
5
0
0
23,863
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.UrlVars
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class UrlVars(BaseModel): active: bool = False
class UrlVars(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
2
0
2
2
1
0
2
2
1
0
5
0
0
23,864
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/config.py
ydata_profiling.config.Variables
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr class Variables(BaseModel): descriptions: dict = {}
class Variables(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
50
2
0
2
2
1
0
2
2
1
0
5
0
0
23,865
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/expectations_report.py
ydata_profiling.expectations_report.ExpectationHandler
from visions import VisionsTypeset from ydata_profiling.model.handler import Handler from ydata_profiling.model import BaseDescription, expectation_algorithms class ExpectationHandler(Handler): """Default handler""" def __init__(self, typeset: VisionsTypeset, *args, **kwargs): mapping = {'Unsupported'...
class ExpectationHandler(Handler): '''Default handler''' def __init__(self, typeset: VisionsTypeset, *args, **kwargs): pass
2
1
14
0
14
0
1
0.07
1
1
0
0
1
0
1
4
17
1
15
3
13
1
4
3
2
1
1
0
1
23,866
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/expectations_report.py
ydata_profiling.expectations_report.ExpectationsReport
from ydata_profiling.model import BaseDescription, expectation_algorithms from ydata_profiling.model.handler import Handler import pandas as pd from typing import Any, Optional from ydata_profiling.utils.dataframe import slugify from ydata_profiling.config import Settings from visions import VisionsTypeset class Expec...
class ExpectationsReport: @property def typeset(self) -> Optional[VisionsTypeset]: pass def to_expectation_suite(self, suite_name: Optional[str]=None, data_context: Optional[Any]=None, save_suite: bool=True, run_validation: bool=True, build_data_docs: bool=True, handler: Optional[Handler]=None) -...
4
1
41
7
22
12
5
0.5
0
7
3
1
2
0
2
2
87
16
48
21
35
24
33
11
29
9
0
1
10
23,867
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.Alert
from typing import Dict, List, Optional, Set from ydata_profiling.utils.styles import get_alert_styles class Alert: """An alert object (type, values, column).""" _anchor_id: Optional[str] = None def __init__(self, alert_type: AlertType, values: Optional[Dict]=None, column_name: Optional[str]=None, fields:...
class Alert: '''An alert object (type, values, column).''' def __init__(self, alert_type: AlertType, values: Optional[Dict]=None, column_name: Optional[str]=None, fields: Optional[Set]=None, is_empty: bool=False): pass @property def alert_type_name(self) -> str: pass @property ...
9
2
8
1
6
1
1
0.15
0
4
1
18
6
6
6
6
57
10
41
30
25
6
30
21
23
2
0
1
8
23,868
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.AlertType
from enum import Enum, auto, unique @unique class AlertType(Enum): """Alert types""" CONSTANT = auto() 'This variable has a constant value.' ZEROS = auto() 'This variable contains zeros.' HIGH_CORRELATION = auto() 'This variable is highly correlated.' HIGH_CARDINALITY = auto() 'This...
@unique class AlertType(Enum): '''Alert types''' pass
2
1
0
0
0
0
0
1
1
0
0
0
0
0
0
49
56
18
19
19
18
19
19
19
18
0
4
0
0
23,869
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.ConstantAlert
from typing import Dict, List, Optional, Set class ConstantAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.CONSTANT, values=values, column_name=column_name, fields={'n_distinct'}, is_empty=is_empty)...
class ConstantAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
8
0
8
0
1
0
1
4
1
0
2
0
2
8
17
1
16
8
8
0
5
3
2
1
1
0
2
23,870
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.ConstantLengthAlert
from typing import Dict, List, Optional, Set class ConstantLengthAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.CONSTANT_LENGTH, values=values, column_name=column_name, fields={'composition_min_len...
class ConstantLengthAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
8
0
8
0
1
0
1
4
1
0
2
0
2
8
17
1
16
8
8
0
5
3
2
1
1
0
2
23,871
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.DuplicatesAlert
from typing import Dict, List, Optional, Set class DuplicatesAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.DUPLICATES, values=values, column_name=column_name, fields={'n_duplicates'}, is_empty=is_...
class DuplicatesAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
9
0
9
0
2
0
1
4
1
0
2
0
2
8
20
1
19
8
11
0
7
3
4
2
1
1
3
23,872
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.EmptyAlert
from typing import Dict, List, Optional, Set class EmptyAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.EMPTY, values=values, column_name=column_name, fields={'n'}, is_empty=is_empty) def _get_...
class EmptyAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
8
0
8
0
1
0
1
4
1
0
2
0
2
8
17
1
16
8
8
0
5
3
2
1
1
0
2
23,873
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.HighCardinalityAlert
from typing import Dict, List, Optional, Set class HighCardinalityAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.HIGH_CARDINALITY, values=values, column_name=column_name, fields={'n_distinct'}, is_...
class HighCardinalityAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
9
0
9
0
2
0
1
4
1
0
2
0
2
8
20
1
19
8
11
0
7
3
4
2
1
1
3
23,874
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.HighCorrelationAlert
from typing import Dict, List, Optional, Set class HighCorrelationAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.HIGH_CORRELATION, values=values, column_name=column_name, is_empty=is_empty) de...
class HighCorrelationAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
11
0
11
0
2
0
1
4
1
0
2
0
2
8
24
1
23
9
15
0
10
4
7
3
1
2
4
23,875
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.ImbalanceAlert
from typing import Dict, List, Optional, Set class ImbalanceAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.IMBALANCE, values=values, column_name=column_name, fields={'imbalance'}, is_empty=is_empty...
class ImbalanceAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
10
0
10
0
2
0
1
4
1
0
2
0
2
8
21
1
20
9
12
0
8
4
5
2
1
1
3
23,876
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.InfiniteAlert
from typing import Dict, List, Optional, Set class InfiniteAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.INFINITE, values=values, column_name=column_name, fields={'p_infinite', 'n_infinite'}, is_e...
class InfiniteAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
9
0
9
0
2
0
1
4
1
0
2
0
2
8
20
1
19
8
11
0
7
3
4
2
1
1
3
23,877
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.MissingAlert
from typing import Dict, List, Optional, Set class MissingAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.MISSING, values=values, column_name=column_name, fields={'p_missing', 'n_missing'}, is_empty...
class MissingAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
9
0
9
0
2
0
1
4
1
0
2
0
2
8
20
1
19
8
11
0
7
3
4
2
1
1
3
23,878
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.NonStationaryAlert
from typing import Dict, List, Optional, Set class NonStationaryAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.NON_STATIONARY, values=values, column_name=column_name, is_empty=is_empty) def _g...
class NonStationaryAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
7
0
7
0
1
0
1
4
1
0
2
0
2
8
16
1
15
8
7
0
5
3
2
1
1
0
2
23,879
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.RejectedAlert
from typing import Dict, List, Optional, Set class RejectedAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.REJECTED, values=values, column_name=column_name, is_empty=is_empty) def _get_descript...
class RejectedAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
7
0
7
0
1
0
1
4
1
0
2
0
2
8
16
1
15
8
7
0
5
3
2
1
1
0
2
23,880
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.SeasonalAlert
from typing import Dict, List, Optional, Set class SeasonalAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.SEASONAL, values=values, column_name=column_name, is_empty=is_empty) def _get_descript...
class SeasonalAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
7
0
7
0
1
0
1
4
1
0
2
0
2
8
16
1
15
8
7
0
5
3
2
1
1
0
2
23,881
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.SkewedAlert
from typing import Dict, List, Optional, Set class SkewedAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.SKEWED, values=values, column_name=column_name, fields={'skewness'}, is_empty=is_empty) ...
class SkewedAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
10
0
10
0
2
0
1
4
1
0
2
0
2
8
21
1
20
9
12
0
8
4
5
2
1
1
3
23,882
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.TypeDateAlert
from typing import Dict, List, Optional, Set class TypeDateAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.TYPE_DATE, values=values, column_name=column_name, is_empty=is_empty) def _get_descrip...
class TypeDateAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
7
0
7
0
1
0
1
4
1
0
2
0
2
8
16
1
15
8
7
0
5
3
2
1
1
0
2
23,883
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.UniformAlert
from typing import Dict, List, Optional, Set class UniformAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.UNIFORM, values=values, column_name=column_name, is_empty=is_empty) def _get_descriptio...
class UniformAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
7
0
7
0
1
0
1
4
1
0
2
0
2
8
16
1
15
8
7
0
5
3
2
1
1
0
2
23,884
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.UniqueAlert
from typing import Dict, List, Optional, Set class UniqueAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.UNIQUE, values=values, column_name=column_name, fields={'n_distinct', 'p_distinct', 'n_unique...
class UniqueAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
8
0
8
0
1
0
1
4
1
0
2
0
2
8
17
1
16
8
8
0
5
3
2
1
1
0
2
23,885
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.UnsupportedAlert
from typing import Dict, List, Optional, Set class UnsupportedAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.UNSUPPORTED, values=values, column_name=column_name, is_empty=is_empty) def _get_de...
class UnsupportedAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
7
0
7
0
1
0
1
4
1
0
2
0
2
8
16
1
15
8
7
0
5
3
2
1
1
0
2
23,886
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/alerts.py
ydata_profiling.model.alerts.ZerosAlert
from typing import Dict, List, Optional, Set class ZerosAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): super().__init__(alert_type=AlertType.ZEROS, values=values, column_name=column_name, fields={'n_zeros', 'p_zeros'}, is_empty=is_empt...
class ZerosAlert(Alert): def __init__(self, values: Optional[Dict]=None, column_name: Optional[str]=None, is_empty: bool=False): pass def _get_description(self) -> str: pass
3
0
9
0
9
0
2
0
1
4
1
0
2
0
2
8
20
1
19
8
11
0
7
3
4
2
1
1
3
23,887
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.Auto
class Auto(Correlation): """Automatically selects the appropriate correlation method based on the DataFrame type.""" _method_name = 'auto_compute'
class Auto(Correlation): '''Automatically selects the appropriate correlation method based on the DataFrame type.''' pass
1
1
2
0
2
0
1
0
1
3
1
0
0
0
1
2
5
0
5
3
1
0
3
2
1
1
1
0
1
23,888
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.Correlation
from ydata_profiling.config import Settings from typing import Dict, List, Optional, Sized, no_type_check class Correlation: _method_name: str = '' def compute(self, config: Settings, df: Sized, summary: dict, backend: CorrelationBackend) -> Optional[Sized]: """Computes correlation using the correct b...
class Correlation: def compute(self, config: Settings, df: Sized, summary: dict, backend: CorrelationBackend) -> Optional[Sized]: '''Computes correlation using the correct backend (Pandas or Spark).''' pass
2
1
2
0
2
0
1
0
0
3
1
6
0
0
1
1
4
0
4
3
1
0
3
2
1
1
0
0
1
23,889
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.Cramers
class Cramers(Correlation): _method_name = 'cramers_compute'
class Cramers(Correlation): pass
1
0
2
0
2
0
1
0
1
3
1
0
0
0
1
2
5
0
5
3
1
0
3
2
1
1
1
0
1
23,890
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.Kendall
class Kendall(Correlation): _method_name = 'kendall_compute'
class Kendall(Correlation): pass
1
0
2
0
2
0
1
0
1
3
1
0
0
0
1
2
5
0
5
3
1
0
3
2
1
1
1
0
1
23,891
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.Pearson
class Pearson(Correlation): _method_name = 'pearson_compute'
class Pearson(Correlation): pass
1
0
2
0
2
0
1
0
1
3
1
0
0
0
1
2
5
0
5
3
1
0
3
2
1
1
1
0
1
23,892
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.PhiK
class PhiK(Correlation): _method_name = 'phik_compute'
class PhiK(Correlation): pass
1
0
2
0
2
0
1
0
1
3
1
0
0
0
1
2
5
0
5
3
1
0
3
2
1
1
1
0
1
23,893
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/correlations.py
ydata_profiling.model.correlations.Spearman
class Spearman(Correlation): _method_name = 'spearman_compute'
class Spearman(Correlation): pass
1
0
2
0
2
0
1
0
1
3
1
0
0
0
1
2
5
0
5
3
1
0
3
2
1
1
1
0
1
23,894
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/description.py
ydata_profiling.model.description.BaseAnalysis
from typing import Any, Dict, List, Optional, Union from datetime import datetime, timedelta from dataclasses import dataclass @dataclass class BaseAnalysis: """Description of base analysis module of report. Overall info about report. Attributes title (str): Title of report. date_start (Un...
@dataclass class BaseAnalysis: '''Description of base analysis module of report. Overall info about report. Attributes title (str): Title of report. date_start (Union[datetime, List[datetime]]): Start of generating description. date_end (Union[datetime, List[datetime]]): End of gener...
5
1
8
0
8
0
2
0.33
0
6
0
0
2
0
2
2
32
4
21
4
17
7
14
3
11
3
0
1
4
23,895
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/description.py
ydata_profiling.model.description.BaseDescription
from dataclasses import dataclass from typing import Any, Dict, List, Optional, Union @dataclass class BaseDescription: """Description of DataFrame. Attributes: analysis (BaseAnalysis): Base info about report. Title, start time and end time of description generating. time_index_analysis (Optio...
@dataclass class BaseDescription: '''Description of DataFrame. Attributes: analysis (BaseAnalysis): Base info about report. Title, start time and end time of description generating. time_index_analysis (Optional[TimeIndexAnalysis]): Description of timeseries index analysis module of report. ...
2
1
0
0
0
0
0
1.17
0
0
0
0
0
0
0
0
28
2
12
1
11
14
12
1
11
0
0
0
0
23,896
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/description.py
ydata_profiling.model.description.TimeIndexAnalysis
from dataclasses import dataclass from typing import Any, Dict, List, Optional, Union from pandas import Timedelta @dataclass class TimeIndexAnalysis: """Description of timeseries index analysis module of report. Attributes: n_series (Union[int, List[int]): Number of time series identified in the data...
@dataclass class TimeIndexAnalysis: '''Description of timeseries index analysis module of report. Attributes: n_series (Union[int, List[int]): Number of time series identified in the dataset. length (Union[int, List[int]): Number of data points in the time series. start (Any): Starting p...
3
1
15
0
15
0
1
0.41
0
4
0
0
1
0
1
1
34
3
22
10
12
9
14
2
12
1
0
0
1
23,897
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/handler.py
ydata_profiling.model.handler.Handler
from typing import Any, Callable, Dict, List, Sequence import networkx as nx from visions import VisionsTypeset class Handler: """A generic handler Allows any custom mapping between data types and functions """ def __init__(self, mapping: Dict[str, List[Callable]], typeset: VisionsTypeset, *args, **k...
class Handler: '''A generic handler Allows any custom mapping between data types and functions ''' def __init__(self, mapping: Dict[str, List[Callable]], typeset: VisionsTypeset, *args, **kwargs): pass def _complete_dag(self) -> None: pass def handle(self, dtype: str, *args, ...
4
2
9
1
7
1
1
0.32
0
2
0
2
3
2
3
3
35
6
22
15
12
7
12
9
8
2
0
1
4
23,898
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/pandas/discretize_pandas.py
ydata_profiling.model.pandas.discretize_pandas.DiscretizationType
from enum import Enum class DiscretizationType(Enum): UNIFORM = 'uniform' QUANTILE = 'quantile'
class DiscretizationType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
23,899
pandas-profiling/pandas-profiling
pandas-profiling_pandas-profiling/src/ydata_profiling/model/pandas/discretize_pandas.py
ydata_profiling.model.pandas.discretize_pandas.Discretizer
from typing import List import pandas as pd import numpy as np class Discretizer: """ A class which enables the discretization of a pandas dataframe. Perform this action when you want to convert a continuous variable into a categorical variable. Attributes: method (DiscretizationType): this a...
class Discretizer: ''' A class which enables the discretization of a pandas dataframe. Perform this action when you want to convert a continuous variable into a categorical variable. Attributes: method (DiscretizationType): this attribute controls how the buckets of your discretization are ...
7
2
8
1
6
1
2
0.53
0
5
1
0
6
3
6
6
69
14
36
16
27
19
23
14
16
3
0
1
10