We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f3cd4 commit a5e1fb2Copy full SHA for a5e1fb2
intake_esm/cat.py
@@ -662,8 +662,10 @@ def _read_csv_pl(self) -> FramesModel:
662
.str.replace('^.', '[') # Replace first/last chars with [ or ].
663
.str.replace('.$', ']') # set/tuple => list
664
.str.replace(',]$', ']') # Remove trailing commas
665
- .str.replace_all("'", '"')
666
- .str.json_decode() # This is to do with the way polars reads json - single versus double quotes
+ .str.replace_all(
+ "'", '"'
667
+ ) # This is to do with the JSON spec- single versus double quotes
668
+ .str.json_decode(dtype=pl.List(pl.Utf8))
669
for colname in converters.keys()
670
]
671
)
0 commit comments