data-linter 6.3.2__tar.gz → 6.3.3__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
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: data_linter
3
- Version: 6.3.2
3
+ Version: 6.3.3
4
4
  Summary: data linter
5
5
  Author: Thomas Hirsch
6
6
  Author-email: thomas.hirsch@digital.justice.gov.uk
@@ -11,6 +11,7 @@ Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
14
15
  Provides-Extra: frictionless
15
16
  Provides-Extra: ge
16
17
  Requires-Dist: PyYAML (>=6.0.1,<7.0.0)
@@ -0,0 +1 @@
1
+ __version__ = "6.3.3"
@@ -1,5 +1,6 @@
1
1
  import logging
2
2
  import inspect
3
+ import re
3
4
  import traceback
4
5
 
5
6
  from functools import wraps
@@ -423,6 +424,8 @@ def _parse_data_to_pandas(filepath: str, table_params: dict, metadata: Metadata)
423
424
  else:
424
425
  df = reader.read(filepath, **pandas_kwargs)
425
426
 
427
+ df.columns = [re.sub(r"^(?:\ufeff|)", "", col) for col in df.columns]
428
+
426
429
  # eliminate case sensitivity, if requested
427
430
  if table_params.get("headers-ignore-case"):
428
431
  for c in metadata.columns:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "data_linter"
3
- version = "6.3.2"
3
+ version = "6.3.3"
4
4
  description = "data linter"
5
5
  authors = ["Thomas Hirsch <thomas.hirsch@digital.justice.gov.uk>",
6
6
  "George Kelly <george.kelly@digital.justice.gov.uk>",
@@ -1 +0,0 @@
1
- __version__ = "6.3.2"
File without changes