Skip to content

Commit

Permalink
Merge pull request #12 from DataShades/LLCAXCHZF-58
Browse files Browse the repository at this point in the history
LLCAXCHZF-58 / fix cache data as ORC file
  • Loading branch information
alexmorev authored Sep 8, 2024
2 parents d3cac5c + f3561ec commit abc2dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/charts/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class FileCacheORC(FileCache):
def read_data(self, file: File) -> pd.DataFrame | None:
from pyarrow import orc

return orc.ORCFile(file).read().to_pandas(all_rows=True)
return orc.ORCFile(file).read().to_pandas()

def write_data(self, file_path: str, data: pd.DataFrame) -> None:
for col in data.select_dtypes(include=["object"]).columns:
Expand Down

0 comments on commit abc2dd7

Please sign in to comment.