A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/27460 below:

share code between pd.array and Series constructor · Issue #27460 · pandas-dev/pandas · GitHub

I've noticed a couple of places in the code where we do runtime imports of Series just to do values = Series(values)._values. It would be nice to avoid that.

This probably also means moving parts of internals.construction to somewhere like arrays.array_. In particular I think this would require moving sanitize_array and _try_cast. Since sanitize_array is imported by other modules, this would be nice to have non-internals anyway.

Finally there are some functions in dtype.cast that might make more sense alongside sanitize_array, e.g. construct_1d_object_array_from_listlike


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4