Skip to content

Add create_pandas_dataframe option to load()#33

Open
atalha1 wants to merge 1 commit into
SimFin:masterfrom
atalha1:add-skip-dataframe-option
Open

Add create_pandas_dataframe option to load()#33
atalha1 wants to merge 1 commit into
SimFin:masterfrom
atalha1:add-skip-dataframe-option

Conversation

@atalha1

@atalha1 atalha1 commented Jul 19, 2026

Copy link
Copy Markdown

Closes #25.

Right now load() always builds a pandas DataFrame after downloading the csv. This adds a create_pandas_dataframe=True arg, and if you set it to False it skips the parsing step and just gives you back the path to the csv on disk. You still get the download/caching/refresh_days/date-filter handling, just not forced into pandas if you don't want it.

Default is True so nothing changes for anyone already using it.

Tested locally against a fake dataset file (bypassing the network download call) to check both the default DataFrame path and the create_pandas_dataframe=False path return what they should. Didn't run the full test suite since it hits the live API with a bundled key, figured that's more for CI.

lets you skip building the pandas df and just get the path to the
downloaded/cached csv on disk. still goes through the normal
download, refresh_days, and date filtering logic, it just returns
the path instead of a df when create_pandas_dataframe=False.
default is True so it's fully backwards compatible.

closes SimFin#25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make optional loading of data into pandas dataframe in sf.load()

1 participant