Skip to main content

Universal data inspector — one function to understand any dataset

Project description

inspecty

Universal data inspector — one function to understand any dataset.

pip install inspecty

Instead of print(), type(), .info(), .describe() — just run ins.inspect(data) and get a high-density statistical report for any data type.


Supported data types

DataFrame, Series, NumPy array (1D/2D/3D), list, tuple, set, dictionary, JSON string, CSV file path, Excel file path — any Python object.

Quick example

import inspecty as ins
import pandas as pd

df = pd.DataFrame({
    "price":  [100.5, 101.2, 100.8, 102.1, 101.5],
    "volume": [1000, 1500, 1200, 1800, 2000],
})

ins.inspect(df)

Output:

Data type: <class 'pandas.DataFrame'>
Total rows: 5. Total columns: 2. Summary:

column:      price      volume
 dtype:    float64       int64
     -      -----       -----
 Row 0:      100.5        1000
 Row 1:      101.2        1500
 Row 2:      100.8        1200
----------  -----       -----
 count:          5           5
   max:      102.1      2000.0
   min:      100.5      1000.0
  mean:     101.22      1500.0
   std:   0.622093  412.310563
median:      101.2      1500.0
  mode:      100.5      1000.0
   nan:          0           0

More examples

Pandas Series

series = pd.Series([10, 20, 30, 40, 50], name="RSI")
ins.inspect(series)

Dictionary pivot

data = {
    "Ticker": ["BTC", "ETH", "SOL"],
    "Price":  [62000.5, 3400.2, 145.1],
    "Signal": ["Buy", "Hold", "Buy"],
}
ins.inspect(data)

3D NumPy tensor

tensor = np.random.randn(2, 100, 5)  # (Tickers, Days, Features)
ins.inspect(tensor)

Auto-load files

ins.inspect("historical_prices.csv")
ins.inspect("data.xlsx")

JSON string

json_resp = '{"Symbol": ["AAPL", "TSLA"], "Price": [150.2, 700.5]}'
ins.inspect(json_resp)

System info

ins.inspect("all_info")

Parameters

Param Type Default Description
df Any required Data object, file path, or JSON string
count int 3 Rows shown from top & bottom
silent bool False Hide headers, show only table

Why not df.describe()?

df.describe() works only on numeric columns, hides NaN counts, and needs multiple calls for basic stats. inspect() handles mixed types, shows NaN explicitly, and works on any data structure — not just DataFrames.


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inspecty-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inspecty-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file inspecty-0.1.0.tar.gz.

File metadata

  • Download URL: inspecty-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for inspecty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbdd0b3469fb5b715edcd15430d75e2175d1620eabfa608ae3c7fc02cc4f6b40
MD5 35a32ce2121499614450b6ce09bc6de9
BLAKE2b-256 8769b640946aeba21faeb2c752f475d4dca408d6060c1e840cc6ff17db282166

See more details on using hashes here.

File details

Details for the file inspecty-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: inspecty-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for inspecty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69d848ea27abdd55f2977107e1a60d4b9a0b92006867c130a9dec57f6f9b75a9
MD5 bd1c466a04971fa3be77b11b979bab69
BLAKE2b-256 4b590a674eb03006972a7c17bca3d8b1025e01883b4a5e009796b4eb05d37374

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page