csv-detective 0.10.1.dev2642__py3-none-any.whl → 0.10.1.dev2660__py3-none-any.whl

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.
@@ -10,6 +10,7 @@ SHARED_COORDS_LABELS = {
10
10
  "coordinates": 1,
11
11
  "coordonnees": 1,
12
12
  "coordonnees insee": 1,
13
+ "coord": 1,
13
14
  "geo": 0.5,
14
15
  "geopoint": 1,
15
16
  "geoloc": 1,
@@ -81,7 +81,11 @@ def create_profile(
81
81
  del cast_col
82
82
  # for all formats we want most frequent values, nb unique values and nb missing values
83
83
  tops_bruts = (
84
- (table[c].value_counts() if _col_values is None else _col_values[c].sort_values())
84
+ (
85
+ table[c].value_counts()
86
+ if _col_values is None
87
+ else (s := _col_values[c]).loc[s.index.notna()].sort_values(ascending=False)
88
+ )
85
89
  .reset_index(name=_count_col)
86
90
  .iloc[:10]
87
91
  .to_dict(orient="records")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: csv-detective
3
- Version: 0.10.1.dev2642
3
+ Version: 0.10.1.dev2660
4
4
  Summary: Detect tabular files column content
5
5
  Keywords: CSV,data processing,encoding,guess,parser,tabular
6
6
  Author: data.gouv.fr
@@ -51,7 +51,7 @@ csv_detective/formats/json.py,sha256=5mCr50RvKFsbMQ-Ad1ORZ6UvOS9v3GUCh6z37mNT57I
51
51
  csv_detective/formats/latitude_l93.py,sha256=PIXHXaOuVdlcYJKPvUJ5hcEF52U9an6Je5vQ-hyN4rs,813
52
52
  csv_detective/formats/latitude_wgs.py,sha256=PNuoUJMxPsfpHhn3wN6q4HyTqNyFjfbfhfkQGyx9L4g,975
53
53
  csv_detective/formats/latitude_wgs_fr_metropole.py,sha256=IOGF6j6I_eZS35rwRmZDt9XRrnJctlt_eUGsNVXIGlw,386
54
- csv_detective/formats/latlon_wgs.py,sha256=gEnswtAGKIemFaIUb6X1jPrh8UBPvPZkOT7-jUhETfc,1346
54
+ csv_detective/formats/latlon_wgs.py,sha256=sGKjKCqTCpitO-sv9qPrBJMaeyg8N57TUdvvS-OqWEo,1363
55
55
  csv_detective/formats/longitude_l93.py,sha256=BnY8rx0ITlMI2x68yF_GjwwS72S-X_ZXD5V3W0Mgzg4,803
56
56
  csv_detective/formats/longitude_wgs.py,sha256=3I5cflrVcfEH3SHd7BMK284t_-Y5C1AyOS480zDcfTI,1031
57
57
  csv_detective/formats/longitude_wgs_fr_metropole.py,sha256=vhL_UBdqvEgrNdZ65A0jyga24OtthU-B4WUGEg9evpc,386
@@ -74,7 +74,7 @@ csv_detective/formats/year.py,sha256=tMc2HHr6Jga3PGWjmeHweK3G17DsjkIpIUUkCecXAm4
74
74
  csv_detective/output/__init__.py,sha256=ALSq_tgX7rGyh--7rmbKz8wHkmResN0h7mNujndow3w,2103
75
75
  csv_detective/output/dataframe.py,sha256=Hnd-AY51U0JMACcpuaK9wwO4oCX9Nd7ZLUTqavgJWRA,3406
76
76
  csv_detective/output/example.py,sha256=8LWheSBYCeDFfarbnmzBrdCbTd8Alh1U4pfXMKfabOw,8630
77
- csv_detective/output/profile.py,sha256=VUQp0VJ22dfY4R5TybTpuQW_TOX_rLEp98cOzu-Jf44,4876
77
+ csv_detective/output/profile.py,sha256=ADr5DwuvwcBYxugjN38fHm11l6ivfzGHXPd8a87Ht-s,4985
78
78
  csv_detective/output/schema.py,sha256=XoKljXPXP00DfqPCiz1ydwTHYGAFsvNxnaPCNBuuBIo,10443
79
79
  csv_detective/output/utils.py,sha256=tbji3dEH7bDc6gLCeVSVquqU3xaHA1CQOMuaJT4Hub8,3297
80
80
  csv_detective/parsing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -86,7 +86,7 @@ csv_detective/parsing/load.py,sha256=f-8aKiNpy_47qg4Lq-UZUR4NNrbJ_-KEGvcUQZ8cmb0
86
86
  csv_detective/parsing/text.py,sha256=yDAcop5xJQc25UtbZcV0guHXAZQfm-H8WuJORTy8Rr8,1734
87
87
  csv_detective/utils.py,sha256=RJ_zFOJ1DRY8HtDrKPiCdNk5gU6-KwOrOKOyfSkBZZY,1118
88
88
  csv_detective/validate.py,sha256=CjZXhhDP-n6wGgEqbwrGRqebU8L5bidwnvQp-TbnvFA,5424
89
- csv_detective-0.10.1.dev2642.dist-info/WHEEL,sha256=xDCZ-UyfvkGuEHPeI7BcJzYKIZzdqN8A8o1M5Om8IyA,79
90
- csv_detective-0.10.1.dev2642.dist-info/entry_points.txt,sha256=1J86TQNCanjsLMboAufdEUla03qEQaC9QmVGYgt2FCQ,57
91
- csv_detective-0.10.1.dev2642.dist-info/METADATA,sha256=985RRKeEOhqPv3Vx3P8anI-ZBxsWCe0WwEZBsJHVRBw,11064
92
- csv_detective-0.10.1.dev2642.dist-info/RECORD,,
89
+ csv_detective-0.10.1.dev2660.dist-info/WHEEL,sha256=xDCZ-UyfvkGuEHPeI7BcJzYKIZzdqN8A8o1M5Om8IyA,79
90
+ csv_detective-0.10.1.dev2660.dist-info/entry_points.txt,sha256=1J86TQNCanjsLMboAufdEUla03qEQaC9QmVGYgt2FCQ,57
91
+ csv_detective-0.10.1.dev2660.dist-info/METADATA,sha256=uNunnYgNHHudxq2dBAEh1_66VUfikSstl6ltOrDz3Sc,11064
92
+ csv_detective-0.10.1.dev2660.dist-info/RECORD,,