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 ff83475 commit c976108Copy full SHA for c976108
intake_esm/cat.py
@@ -516,8 +516,9 @@ def pandas(self) -> pd.DataFrame:
516
517
if self.pl_df is not None:
518
self.df = self.pl_df.to_pandas(use_pyarrow_extension_array=True)
519
- for colname in self.columns_with_iterables: # Can this be done in one hit?
520
- self.df[colname] = self.df[colname].apply(tuple)
+ self.df[list(self.columns_with_iterables)] = self.df[
+ list(self.columns_with_iterables)
521
+ ].map(tuple)
522
return self.df
523
524
self.pl_df = self.lf.collect() # type: ignore[union-attr]
0 commit comments