Skip to content

Commit cddca42

Browse files
committed
improving datetime recognition
1 parent 10d1f8b commit cddca42

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

structured_data_profiling/data_tests/temporal_test.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,12 @@ def identify_dates(data, n_samples=10):
4141
parsed_dates = [
4242
dateparser.parse(str(data2[i].iloc[j]), region="EU") is not None
4343
for j in samples
44-
<<<<<<< HEAD
44+
4545
if data2[i].isna().iloc[j] == False
4646
]
4747
if len(parsed_dates) > 0:
4848
if sum(parsed_dates) / len(parsed_dates) > 0.99:
4949
possible_dates.append(i)
50-
=======
51-
if data2[i].isna().iloc[j] is False
52-
]
53-
54-
if sum(parsed_dates) / len(parsed_dates) > 0.99:
55-
possible_dates.append(i)
56-
>>>>>>> 3703343f8b7c8f60854438be51498b7092867c01
5750

5851
dates = {}
5952
for i in possible_dates:

0 commit comments

Comments
 (0)