MannLabs / alphabase

Infrastructure of AlphaX ecosystem
https://alphabase.readthedocs.io
Apache License 2.0
31 stars 9 forks source link

Handle two columns with same name in dataframe validation #103

Closed GeorgWa closed 1 year ago

GeorgWa commented 1 year ago
df = pd.DataFrame({
    'a' : [1,2,3],
    'c' : [7,8,9]
})
df = df[['a', 'a', 'c']]

df['a'].dtype

AttributeError: 'DataFrame' object has no attribute 'dtype'
jalew188 commented 1 year ago

Shall we address this in alphabase? I think this is general issue in pandas?