Skip to content

Commit

Permalink
Merge pull request #36 from UBC-MDS/viz
Browse files Browse the repository at this point in the history
Added Usage in README.md
  • Loading branch information
DongchunChen authored Jan 26, 2025
2 parents ac26e72 + 4835911 commit cd57f2b
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Contributors
[![Documentation Status](https://readthedocs.org/projects/datpro/badge/?version=latest)](https://datpro.readthedocs.io/en/latest/?badge=latest)

Dongchun Chen, Ismail (Husain) Bhinderwala, Jingyuan Wang

Expand All @@ -22,7 +23,32 @@ $ pip install datpro

## Usage

- TODO
```python
import pandas as pd
import datpro as dp

# Example DataFrame
data = {
'age': [25, 30, 35, None, 40, 30, 35, 100],
'salary': [50000, 60000, 70000, 80000, 90000, None, 85000, 400000],
'department': ['HR', 'Finance', 'HR', 'IT', 'Finance', 'IT', 'HR', 'Finance']
}
df = pd.DataFrame(data)

# Summarize numeric data
summary = dp.summarize_data(df)
print("Summary of numeric data:")
print(summary)

# Detect anomalies
anomalies = dp.detect_anomalies(df)
print("Anomaly detection report:")
print(anomalies)

# Visualize data
print("Generating visualizations...")
dp.plotify(df, plot_types=['histogram', 'box', 'correlation'])
```

## Contributing

Expand Down

0 comments on commit cd57f2b

Please sign in to comment.