ltc-code 0.1.82__tar.gz → 0.1.83__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ltc-code
3
- Version: 0.1.82
3
+ Version: 0.1.83
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.9
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ltc-code"
3
- version = "0.1.82"
3
+ version = "0.1.83"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -0,0 +1,283 @@
1
+ # info snap select
2
+ infosnap = infosnap.select(
3
+ # --------------------------------------------------
4
+ # Metadata
5
+ # --------------------------------------------------
6
+ pl.col("school_year"),
7
+ pl.col("cmo_name"),
8
+ pl.col("data_type"),
9
+ pl.col("ren_num"),
10
+
11
+ # --------------------------------------------------
12
+ # Student name
13
+ # --------------------------------------------------
14
+ pl.col("First Name").alias("fname"),
15
+ pl.col("stu_MiddleName").alias("mname"),
16
+ pl.col("Last Name").alias("lname"),
17
+
18
+ # --------------------------------------------------
19
+ # DOB
20
+ # --------------------------------------------------
21
+ # Ambiguous / duplicate DOB fields; keep raw
22
+ pl.col("DateOfBirth"),
23
+ pl.col("stu_DoB"),
24
+ pl.col("stu_DobCheck"),
25
+
26
+ # --------------------------------------------------
27
+ # School / campus
28
+ # --------------------------------------------------
29
+ pl.col("School").alias("school_name"),
30
+
31
+ # Ambiguous duplicate/alternate campus fields; keep raw
32
+ pl.col("stu_Campus"),
33
+ pl.col("Campus"),
34
+
35
+ # --------------------------------------------------
36
+ # Grades
37
+ # --------------------------------------------------
38
+ # Grade only exists in 2010 and can be missing
39
+ pl.col("Grade"),
40
+
41
+ pl.col("Enroll Grade").alias("enrollment_grade"),
42
+
43
+ # Ambiguous / alternate enrollment-grade fields; keep raw
44
+ pl.col("stu_EnrollGrade"),
45
+ pl.col("stu_GradeLastYear"),
46
+
47
+ # --------------------------------------------------
48
+ # IDs
49
+ # --------------------------------------------------
50
+ pl.col("Snapcode"),
51
+ pl.col("ExternalStudentID").alias("student_id"),
52
+
53
+ # --------------------------------------------------
54
+ # Status / enrollment status
55
+ # --------------------------------------------------
56
+ pl.col("Status"),
57
+ pl.col("Enroll Status").alias("enroll_status"),
58
+ pl.col("stu_Status"),
59
+
60
+ # --------------------------------------------------
61
+ # Dates / timestamps
62
+ # --------------------------------------------------
63
+ pl.col("Imported").alias("imported_date"),
64
+
65
+ # Started is after imported date; may proxy registration started/submitted
66
+ pl.col("Started"),
67
+
68
+ # Notification/contact dates
69
+ pl.col("NotificationDate"),
70
+ pl.col("LetterHistory"),
71
+
72
+ # --------------------------------------------------
73
+ # Address / geography
74
+ # --------------------------------------------------
75
+ pl.col("p1_Address").alias("address1"),
76
+ pl.col("p1_Address2").alias("address2"),
77
+ pl.col("p1_City").alias("city"),
78
+ pl.col("p1_Zip").alias("zip"),
79
+ pl.col("p1_NewarkRes"),
80
+
81
+ # --------------------------------------------------
82
+ # Parent / guardian
83
+ # --------------------------------------------------
84
+ pl.col("p1_FirstName").alias("p1_fname"),
85
+ pl.col("p1_LastName").alias("p1_lname"),
86
+ pl.col("p_Agree1"),
87
+
88
+ # --------------------------------------------------
89
+ # Sibling variables
90
+ # --------------------------------------------------
91
+ pl.col("sib1_FirstName").alias("sib1_fname"),
92
+ pl.col("sib1_LastName").alias("sib1_lname"),
93
+ pl.col("sib1_Grade").alias("sib1_grade"),
94
+ pl.col("stu_NumberOfSibs"),
95
+
96
+ # --------------------------------------------------
97
+ # Prior school / preschool
98
+ # --------------------------------------------------
99
+ pl.col("stu_PrevSchool").alias("prior_school"),
100
+ pl.col("stu_PreSchool"),
101
+
102
+ # --------------------------------------------------
103
+ # Language / student attributes
104
+ # --------------------------------------------------
105
+ pl.col("stu_Language1").alias("preferred_language"),
106
+
107
+ # Possible SPED / IEP fields
108
+ pl.col("stu_IEPStatus").alias("sped"),
109
+ pl.col("stu_NeedsIEP"),
110
+ pl.col("stu_AdaptiveSkillsIssue"),
111
+ pl.col("stu_GrossMotorSkillsIssue"),
112
+
113
+ # Health / documentation fields
114
+ pl.col("stu_ImmunizationReceived"),
115
+ pl.col("stu_BirthCityNJ"),
116
+ pl.col("stu_BirthCityNotNJ"),
117
+
118
+ # --------------------------------------------------
119
+ # Notification validation / communication
120
+ # --------------------------------------------------
121
+ pl.col("EmailNotificationValidationStatus"),
122
+ pl.col("LetterNotificationValidationStatus"),
123
+ pl.col("NotificationDate"),
124
+
125
+ # --------------------------------------------------
126
+ # Call / follow-up fields
127
+ # --------------------------------------------------
128
+ pl.col("Call_Date"),
129
+ pl.col("Call_HomeVisit"),
130
+ pl.col("Call_HomeVisitStatus"),
131
+ pl.col("Call_Meeting_Date"),
132
+ pl.col("Call_Notes"),
133
+ pl.col("Call_OutcomeDecl"),
134
+ pl.col("Follow-up"),
135
+ pl.col("Outcome"),
136
+
137
+ # --------------------------------------------------
138
+ # Notes / admin flags
139
+ # --------------------------------------------------
140
+ pl.col("Tags"),
141
+ pl.col("Notes"),
142
+ pl.col("stu_OptInAgreement"),
143
+ )
144
+
145
+
146
+ # --- survey monkey select ---
147
+
148
+ survey_monkey = survey_monkey.select(
149
+ # --------------------------------------------------
150
+ # Metadata
151
+ # --------------------------------------------------
152
+ pl.col("school_year"),
153
+ pl.col("cmo_name"),
154
+ pl.col("data_type"),
155
+ pl.col("ren_num"),
156
+
157
+ # --------------------------------------------------
158
+ # SurveyMonkey / application IDs
159
+ # --------------------------------------------------
160
+ pl.col("Respondent ID").alias("application_id"),
161
+ pl.col("Collector ID"),
162
+
163
+ # --------------------------------------------------
164
+ # Dates
165
+ # --------------------------------------------------
166
+ # Probably application/submission date
167
+ pl.col("End Date").alias("application_date"),
168
+
169
+ # --------------------------------------------------
170
+ # Student name / DOB
171
+ # --------------------------------------------------
172
+ pl.col("fname"),
173
+ pl.col("lname"),
174
+ pl.col("dob"),
175
+
176
+ # --------------------------------------------------
177
+ # Grade
178
+ # --------------------------------------------------
179
+ # Missing in Spark Academy file
180
+ pl.col("entry_grade"),
181
+
182
+ # Spark-only fields that may help infer entry grade
183
+ pl.col("daycare"),
184
+ pl.col("Headstartprek"),
185
+ pl.col("otherprek"),
186
+
187
+ # Many “Other” fields may indicate kindergarten/1st/2nd/etc.; keep raw for grade imputation
188
+ pl.col("Other"),
189
+
190
+ # --------------------------------------------------
191
+ # Parent / guardian
192
+ # --------------------------------------------------
193
+ pl.col("p_fname"),
194
+ pl.col("p_lname"),
195
+ pl.col("p_sig"),
196
+
197
+ # --------------------------------------------------
198
+ # Prior school / prior setting
199
+ # --------------------------------------------------
200
+ pl.col("prior_school_type"),
201
+ pl.col("prior_school"),
202
+
203
+ # --------------------------------------------------
204
+ # Sibling priority
205
+ # --------------------------------------------------
206
+ pl.col("sib_enroll_school"),
207
+ pl.col("sib_fname"),
208
+ pl.col("sib_lname"),
209
+ pl.col("Sib_school").alias("sib_school"),
210
+
211
+ # Only exists in 2011-2012 CLOSED file
212
+ pl.col("sib_concur_school"),
213
+
214
+ # TEAM/Rise/NCA-specific sibling campus fields from 2009 import
215
+ pl.col("sib_TEAM_campus"),
216
+ pl.col("sib_Rise_Academy_Campus"),
217
+ pl.col("sib_Newark_Collegiate_Academy_campus"),
218
+
219
+ # --------------------------------------------------
220
+ # Address / geography
221
+ # --------------------------------------------------
222
+ pl.col("address1"),
223
+ pl.col("address2"),
224
+ pl.col("city"),
225
+ pl.col("zip"),
226
+
227
+ # NJ residency field; null may imply non-NJ / missing residency status
228
+ pl.col("state_nj_residents_only"),
229
+ )
230
+
231
+
232
+ # --- kipp newark enrollment ---
233
+
234
+ enrollment = enrollment.select(
235
+ # --------------------------------------------------
236
+ # Metadata
237
+ # --------------------------------------------------
238
+ pl.col("academic_year").alias("school_year"),
239
+
240
+ # --------------------------------------------------
241
+ # Student IDs
242
+ # --------------------------------------------------
243
+ pl.col("Student_number").alias("student_id"),
244
+
245
+ # Alternate network-specific identifiers; keep raw
246
+ pl.col("newark_enrollment_number"),
247
+ pl.col("infosnap_id"),
248
+
249
+ # --------------------------------------------------
250
+ # Student name
251
+ # --------------------------------------------------
252
+ pl.col("first_name").alias("fname"),
253
+ pl.col("middle_name").alias("mname"),
254
+ pl.col("last_name").alias("lname"),
255
+
256
+ # --------------------------------------------------
257
+ # Grade / enrollment
258
+ # --------------------------------------------------
259
+ pl.col("grade_level").alias("grade"),
260
+
261
+ # Years enrolled in TEAM/KIPP network
262
+ pl.col("year_in_network"),
263
+
264
+ # Enrollment entry date
265
+ pl.col("entrydate"),
266
+
267
+ # --------------------------------------------------
268
+ # Parent / guardian
269
+ # --------------------------------------------------
270
+ # Full names; can split later if desired
271
+ pl.col("Mother"),
272
+ pl.col("Father"),
273
+
274
+ # --------------------------------------------------
275
+ # Address
276
+ # --------------------------------------------------
277
+ pl.col("street").alias("address1"),
278
+ pl.col("city"),
279
+ pl.col("Zip").alias("zip"),
280
+ )
281
+
282
+
283
+
File without changes