REF: Move `to_dict` implementation to pandas.core.methods.to_dict

This issue has been created since 2022-11-22.

Ref: #46487 (review)

For code organization, it'd be good to get the implementation of these methods out of frame.py and to a more suitable location - pandas.core.methods.to_dict

jbrockmendel wrote this answer on 2022-11-22

i dont think the to_* heuristic works. you wouldn't want to move to_numpy to pd.io would you? Certainly not to_timestamp?

rhshadrach wrote this answer on 2022-11-23

Fair point - other than a new file inside of core, I don't see a good location for something like this. Also, is there opposition to moving the implementation of to_dict outside of frame.py in the first place?

jbrockmendel wrote this answer on 2022-11-23

I don't see a good location for something like this.

ive been thinking a core/methods/ directory might be good for files that are basically just individual refactored-out methods (e.g. describe.py)

jreback wrote this answer on 2022-11-24

+1 in @jbrockmendel idea

More Details About Repo
Owner Name pandas-dev
Repo Name pandas
Full Name pandas-dev/pandas
Language Python
Created Date 2010-08-24
Updated Date 2022-12-07
Star Count 36164
Watcher Count 1118
Fork Count 15472
Issue Count 3683

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Read protection unlock problem 10 2022-03-27 2022-07-13
Trade offers are not always canceled 1 2021-01-17 2022-10-21
when they will update the plugin. 1 2021-06-18 2022-07-13
How do I get a query definition as a string? 1 2021-02-18 2022-11-03
How to read astropy tables with `asdftool`? 3 2022-01-19 2022-10-02
Window text unreadable when using external display 14 2022-02-16 2022-11-18
SoX could not be found! 1 2021-02-23 2022-11-29
Network().add_node() method does not parse **options dict. 2 2022-05-07 2022-09-26
Edge length and width from attribute 4 2022-05-12 2022-10-06
Shade and line not producing output 1 2021-03-12 2022-11-21
Create issue template 2 2022-08-22 2022-10-30
Proposal / validationMessages on FormControl 2 2022-08-31 2022-10-30
Svg Logo Rendering 4 2021-11-15 2022-01-15
Syntax proposal: `m/rec` shorthand for `m/with` single case 13 2020-03-05 2022-10-06
Multiple Calls Fail.... 5 2022-01-04 2022-11-18
[Feature] - Allow Private Network to attach to Instances, like Block Storage, instead of vultr_instance private_network_ids 8 2021-04-30 2022-11-13
Possible to create models from raw SQL 1 2021-09-20 2022-11-24
Possible incompatibility with Item or Mac OS X 5 2021-06-09 2022-11-17
Add support for OWASP RR 0 2022-03-23 2022-09-11
Manual subscription sorting 2 2021-10-25 2022-11-27
Potential rendering issue with unicode characters -- Braille Pattern Dots 4 2021-09-30 2022-11-02
运行报错,rc-picker对TS版本依赖问题 2 2021-01-07 2022-11-28
Dependabot couldn't access bitbucket-api-fork 0 2021-04-26 2022-11-14
Unable to slice with support interface enabled. 2 2022-11-07 2022-11-13
Make HappyEyeballsConnectionImpl more general to accommodate broader use cases 1 2022-06-02 2022-11-09
一个uuid可以多设备同时使用吗,我在inbound里只添加一个uuid,几十台电脑同时使用这个uuid,可行吗? 1 2022-06-19 2022-12-01
Unit test give an error on the test graph builder 1 2022-07-24 2022-11-14
"Sorry, /* is not a valid page", and other issues with missing secrets KF1.3 / Vanilla K8s 1.18 4 2021-09-16 2022-11-25
Geolocating an IP always uses country codes set in headers 2 2021-12-08 2022-09-23
[crashlytics]: Building iOS not possible 6 2021-03-16 2022-09-16
Add a destroy config command 0 2022-03-03 2022-11-27
Collection product order changes randomly in development 14 2021-03-29 2022-09-29
Error: "export 'useId' (imported as 'React') was not found in 'react'"after upgrading to v8.8.1 2 2022-04-26 2022-11-29
Mac osxfuse not compatible with Ventura 3 2022-10-27 2022-11-16
MapboxGL freezes (crashes) when changing coordinates 3 2022-10-06 2022-11-06
Formating ais-highlight attribute with markdown content 6 2021-11-11 2022-11-19
Split API usage by Environment 4 2021-11-26 2022-10-22
Customize note search results filtering 1 2022-07-25 2022-11-22
Change Request: Add Guidance for factory methods for C++ 0 2022-05-23 2022-12-07
net/url: url.Parse() dont check error 1 2022-08-26 2022-08-30
Incorrect case completions 1 2022-10-12 2022-11-11
Example gallery renderring issue 4 2022-10-03 2022-11-05
"reflect" padding used in Gaussian Blur Transform throws error on smaller images 0 2022-10-03 2022-11-05
Broker return Docker internal IP when Client findBrokerDiscoveryService().getInstances("*") then LoadBalancedRSocket: RST-400500: Failed to connect URI: tcp://<docker internal ip>:9999 3 2021-12-01 2022-11-24
[Bug] useModel 没有热更新 2 2022-07-05 2022-11-20
主运用路径太重复能不能解决下吗 3 2022-01-04 2022-01-10
no curl from inside container 5 2022-09-21 2022-09-21
Allow timeout specified in request body to override timeout from settings 1 2022-02-28 2022-10-12
Broker-Named Queue Declaration is Broken 1 2022-02-10 2022-11-18
Difficult to get normalized coordinates for spatial analytics parameters 3 2021-08-31 2022-10-14