Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

test_preprocessing.py 731 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  1. """
  2. Tests for data preprocessing functionality
  3. """
  4. import os
  5. import pandas as pd
  6. def test_data_schema():
  7. """Test that data has expected schema"""
  8. if os.path.exists("data/raw/iris.csv"):
  9. df = pd.read_csv("data/raw/iris.csv")
  10. # Basic schema checks
  11. assert len(df) > 0, "Data should not be empty"
  12. assert len(df.columns) >= 4, "Should have feature columns"
  13. def test_processed_data_exists():
  14. """Test that processed data can be created"""
  15. # Simple test that doesn't depend on complex preprocessing
  16. assert True, "Preprocessing module exists"
  17. def test_clean_data_function():
  18. """Test data cleaning functionality"""
  19. # Mock test for now
  20. assert True, "Data cleaning works"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...