NTNU-IndEcol / df_file_interchange

File interchange code to consistently save and reload Pandas dataframes with metadata.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

loading data #17

Closed konstantinstadler closed 6 months ago

konstantinstadler commented 6 months ago

The metadata file holds all info necessary for loading. There should be a method to just use

data, meta = fi.load_data(metadatafile)

or similar

EsmeMaxwell commented 6 months ago

Aye, can do that up to a limitation but it becomes tricky* if the user extends the custom info classes. Absolutely fine if the user is only using what's in the package though.

konstantinstadler commented 6 months ago

Just think of the very simplest string based dict


From: Esmé Maxwell @.> Sent: Friday, April 26, 2024 1:08:30 PM To: EXIOBASE/df_file_interchange @.> Cc: Konstantin Stadler @.>; Author @.> Subject: Re: [EXIOBASE/df_file_interchange] loading data (Issue #17)

Aye, can do that up to a limitation but it becomes tricky* if the user extends the custom info classes. Absolutely fine if the user is only using what's in the package though.

*

— Reply to this email directly, view it on GitHubhttps://github.com/EXIOBASE/df_file_interchange/issues/17#issuecomment-2079175921, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABTX7S2DXNVB4FCESGZYFMTY7IYS5AVCNFSM6AAAAABG2Q5U3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZZGE3TKOJSGE. You are receiving this because you authored the thread.Message ID: @.***>

EsmeMaxwell commented 6 months ago

Done.