Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take care of deprecation warning in pd.concat usage #31

Open
jgieseler opened this issue Mar 6, 2024 · 0 comments
Open

Take care of deprecation warning in pd.concat usage #31

jgieseler opened this issue Mar 6, 2024 · 0 comments

Comments

@jgieseler
Copy link
Owner

Since Pandas 2.1.0, there is a deprecation warning in (some) usages of pd.concat:

Deprecated the behavior of concat() with both len(keys) != len(objs), in a future version this will raise instead of truncating to the shorter of the two sequences (GH 43485)

This is raised e.g. for this call

df_epd_p = pd.concat(
[df_p[flux_p_channels], df_p[flux_sigma_p_channels]],
axis=1, keys=['H_Flux', 'H_Uncertainty', 'QUALITY_FLAG'])

Minimal working example:

from solo_epd_loader import epd_load
df_protons_het, df_electrons_het, energies_het = epd_load(sensor='het', level='ll', startdate=20220905, viewing='sun', autodownload=True)
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

No branches or pull requests

1 participant