You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a DataFrame df with homogenous type, then DataFrame(df) returns a view on the original dataframe. DataFrame(df, dtype=current_type) should be identical; but, instead, it makes an unnecessary copy.
If I have a DataFrame
df
with homogenous type, thenDataFrame(df)
returns a view on the original dataframe.DataFrame(df, dtype=current_type)
should be identical; but, instead, it makes an unnecessary copy.The same thing seems to happen in the input is an ndarray --
DataFrame(arr)
returns a view,DataFrame(arr, dtype=arr.dtype)
returns a copy.The text was updated successfully, but these errors were encountered: