Skip to content

Commit

Permalink
Changed columns for Parquet read time series
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Apr 10, 2024
1 parent 65a4461 commit eb2f957
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ individual data providers)

# Release Notes

* 0.1.35 - findatapy (10 Apr 2024)
* 0.1.34 - findatapy (08 Apr 2024)
* 0.1.33 - findatapy (01 Apr 2024)
* 0.1.32 - findatapy (17 Feb 2024)
Expand All @@ -141,6 +142,8 @@ individual data providers)

# Coding log

* 09 Apr 2024
* Bugfix for reading Parquet files with columns
* 08 Apr 2024
* Removed list typecheck (to make code Python 3.8 compatible)
* 01 Apr 2024
Expand Down
5 changes: 4 additions & 1 deletion findatapy/market/ioengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ def read_time_series_cache_from_disk(self, fname: str | List[str],
data_frame.index = pd.to_datetime(data_frame.index)

elif self.path_exists(fname_single):
data_frame = self.read_parquet(fname_single, columns=columns)
data_frame = self.read_parquet(fname_single)

# Can be too restrictive selecting columns
# data_frame = self.read_parquet(fname_single, columns=columns)
# data_frame = pd.read_parquet(fname_single)

data_frame_list.append(data_frame)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
tickers, using configuration files. There is also functionality which is particularly useful for those downloading FX market data."""

setup(name='findatapy',
version='0.1.34',
version='0.1.35',
description='Market data library',
author='Saeed Amen',
author_email='[email protected]',
Expand Down

0 comments on commit eb2f957

Please sign in to comment.