iqramukhtiar commited on
Commit
82d2020
·
verified ·
1 Parent(s): 4fa4171

Create create_treatments_csv.py

Browse files
Files changed (1) hide show
  1. create_treatments_csv.py +106 -0
create_treatments_csv.py ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+
3
+ def create_treatments_csv():
4
+ """
5
+ Creates a CSV file with crop disease treatments information.
6
+ """
7
+ # Define the data
8
+ data = {
9
+ 'Crop': [
10
+ 'Tomato', 'Tomato', 'Tomato', 'Tomato', 'Tomato', 'Tomato',
11
+ 'Apple', 'Apple', 'Apple',
12
+ 'Corn', 'Corn', 'Corn',
13
+ 'Potato', 'Potato',
14
+ 'Grape', 'Grape', 'Grape',
15
+ 'Cherry',
16
+ 'Peach',
17
+ 'Strawberry'
18
+ ],
19
+ 'Disease': [
20
+ 'Early Blight', 'Late Blight', 'Leaf Mold', 'Septoria Leaf Spot',
21
+ 'Bacterial Spot', 'Yellow Leaf Curl Virus',
22
+ 'Apple Scab', 'Black Rot', 'Cedar Apple Rust',
23
+ 'Common Rust', 'Northern Leaf Blight', 'Cercospora Leaf Spot',
24
+ 'Early Blight', 'Late Blight',
25
+ 'Black Rot', 'Esca (Black Measles)', 'Leaf Blight',
26
+ 'Powdery Mildew',
27
+ 'Bacterial Spot',
28
+ 'Leaf Scorch'
29
+ ],
30
+ 'Symptoms': [
31
+ 'Brown spots with concentric rings on leaves, starting on older leaves',
32
+ 'Dark water-soaked spots on leaves that quickly enlarge and turn brown with a slight yellow border',
33
+ 'Pale yellow spots on upper leaf surfaces with olive-green to grayish-brown mold on undersides',
34
+ 'Small circular spots with dark borders and light gray centers on leaves, starting on lower leaves',
35
+ 'Small, raised, water-soaked spots on leaves, stems, and fruit that enlarge and turn brownish',
36
+ 'Yellowing and curling of leaves, stunted growth, and reduced fruit production',
37
+ 'Olive-green to brown spots on leaves and fruit, leaves may drop prematurely',
38
+ 'Reddish-brown spots on leaves and fruit, infected fruit mummifies',
39
+ 'Bright orange-yellow spots on leaves, orange gelatinous projections on fruit',
40
+ 'Rust-colored pustules on both sides of leaves, severe infections cause leaf death',
41
+ 'Long, cigar-shaped gray-green to tan lesions on leaves',
42
+ 'Small, circular spots with tan centers and reddish-purple borders',
43
+ 'Dark brown, concentric rings on lower leaves that spread upward',
44
+ 'Water-soaked spots on leaves that rapidly enlarge and turn brown or black',
45
+ 'Reddish-brown spots on leaves, dark lesions on fruit, fruit shrivels into black mummies',
46
+ 'Red/brown streaks in wood, spots on leaves, and shriveled fruit',
47
+ 'Small, irregular red spots on leaf surface that enlarge and become brown',
48
+ 'White powdery coating on leaves, stems, and fruit',
49
+ 'Small water-soaked spots on leaves and fruit that enlarge and turn purple with white centers',
50
+ 'Purple to brown spots develop on the upper surface of older leaves, leaf edges appear scorched'
51
+ ],
52
+ 'Treatment': [
53
+ 'Remove infected leaves, improve air circulation, rotate crops, avoid overhead watering',
54
+ 'Remove infected plants, avoid overhead watering, use resistant varieties, apply fungicide preventatively',
55
+ 'Improve air circulation, avoid overhead watering, remove infected leaves, rotate crops',
56
+ 'Remove infected leaves, improve air circulation, mulch around plants, rotate crops',
57
+ 'Remove infected plants, avoid working in wet fields, use copper-based sprays, rotate crops',
58
+ 'Control whitefly vectors, remove infected plants, use reflective mulch, plant resistant varieties',
59
+ 'Remove fallen leaves, prune for air circulation, plant resistant varieties, apply fungicide',
60
+ 'Prune out infected branches, remove mummified fruit, apply fungicide, ensure good air circulation',
61
+ 'Remove nearby cedar trees if possible, apply fungicide, plant resistant varieties',
62
+ 'Remove infected leaves, apply fungicide early in season, plant resistant varieties',
63
+ 'Rotate crops, remove crop debris, apply fungicide, plant resistant varieties',
64
+ 'Rotate crops, remove infected debris, improve air circulation, apply fungicide',
65
+ 'Remove infected leaves, improve air circulation, rotate crops, apply fungicide preventatively',
66
+ 'Remove infected plants, avoid overhead watering, use resistant varieties, apply fungicide preventatively',
67
+ 'Prune infected areas, remove mummified fruit, apply fungicide, ensure good air circulation',
68
+ 'Prune infected areas, remove infected wood, ensure proper nutrition and water',
69
+ 'Remove infected leaves, apply fungicide, ensure proper spacing between plants',
70
+ 'Improve air circulation, apply fungicide at first sign, remove infected parts',
71
+ 'Remove infected leaves and fruit, apply copper-based sprays, rotate crops',
72
+ 'Ensure proper watering, add mulch, improve soil drainage, remove infected leaves'
73
+ ],
74
+ 'Medicine/Chemical Control': [
75
+ 'Chlorothalonil, Mancozeb, Copper fungicides, Azoxystrobin',
76
+ 'Chlorothalonil, Mancozeb, Copper-based fungicides, Cymoxanil',
77
+ 'Chlorothalonil, Copper fungicides, Mancozeb, Potassium bicarbonate',
78
+ 'Chlorothalonil, Copper fungicides, Mancozeb, Azoxystrobin',
79
+ 'Copper hydroxide, Streptomycin sulfate (where allowed), Acibenzolar-S-methyl',
80
+ 'No effective chemical control for the virus; focus on whitefly control with insecticides',
81
+ 'Captan, Myclobutanil, Sulfur sprays, Thiophanate-methyl',
82
+ 'Captan, Myclobutanil, Mancozeb, Thiophanate-methyl',
83
+ 'Myclobutanil, Propiconazole, Mancozeb, Sulfur',
84
+ 'Propiconazole, Azoxystrobin, Mancozeb, Pyraclostrobin',
85
+ 'Azoxystrobin, Propiconazole, Pyraclostrobin, Mancozeb',
86
+ 'Pyraclostrobin, Azoxystrobin, Chlorothalonil, Mancozeb',
87
+ 'Chlorothalonil, Mancozeb, Azoxystrobin, Boscalid',
88
+ 'Chlorothalonil, Mancozeb, Copper-based fungicides, Cymoxanil',
89
+ 'Mancozeb, Myclobutanil, Captan, Tebuconazole',
90
+ 'No highly effective chemical control; focus on cultural practices',
91
+ 'Mancozeb, Copper fungicides, Captan, Fosetyl-aluminum',
92
+ 'Sulfur, Potassium bicarbonate, Neem oil, Myclobutanil',
93
+ 'Copper hydroxide, Oxytetracycline (where allowed), Streptomycin sulfate (where allowed)',
94
+ 'Calcium nitrate sprays, Fungicides with Captan, Thiophanate-methyl'
95
+ ]
96
+ }
97
+
98
+ # Create DataFrame
99
+ df = pd.DataFrame(data)
100
+
101
+ # Save to CSV
102
+ df.to_csv('crop_diseases_treatments.csv', index=False)
103
+ print("Created crop_diseases_treatments.csv with", len(df), "entries")
104
+
105
+ if __name__ == "__main__":
106
+ create_treatments_csv()