回答編集履歴
4
インスタンス化しないとインスタンス変数出ないじゃん。結論に変更はなし
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
>>> import re, pandas as pd
|
12
12
|
|
13
|
-
>>> for x in dir(pd.DataFrame):
|
13
|
+
>>> for x in dir(pd.DataFrame()):
|
14
14
|
|
15
15
|
... if re.search("^_[^_]", x):
|
16
16
|
|
3
追記
test
CHANGED
@@ -343,3 +343,15 @@
|
|
343
343
|
|
344
344
|
|
345
345
|
どうせ「紳士協定」なので、面倒くさくなる`__`はほとんど見かけない印象があります。
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
なので、
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
> 現場ではpublicとprivate(らしいもの)のどちらが基本ですか?
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
に対しては「(命名規則でprivate的に扱うと決めているだけの)publicが基本」と答えるべきかもしれません。
|
2
修正
test
CHANGED
@@ -340,8 +340,6 @@
|
|
340
340
|
|
341
341
|
```
|
342
342
|
|
343
|
-
(コードブロック内は折り返してくれないので、じっくり見たい方はエディタにコピペしてご鑑賞ください)
|
344
|
-
|
345
343
|
|
346
344
|
|
347
345
|
どうせ「紳士協定」なので、面倒くさくなる`__`はほとんど見かけない印象があります。
|
1
やっぱり一行ずつ見ることにした。
test
CHANGED
@@ -10,9 +10,333 @@
|
|
10
10
|
|
11
11
|
>>> import re, pandas as pd
|
12
12
|
|
13
|
-
>>>
|
14
|
-
|
15
|
-
|
13
|
+
>>> for x in dir(pd.DataFrame):
|
14
|
+
|
15
|
+
... if re.search("^_[^_]", x):
|
16
|
+
|
17
|
+
... print(x)
|
18
|
+
|
19
|
+
...
|
20
|
+
|
21
|
+
_AXIS_ALIASES
|
22
|
+
|
23
|
+
_AXIS_IALIASES
|
24
|
+
|
25
|
+
_AXIS_LEN
|
26
|
+
|
27
|
+
_AXIS_NAMES
|
28
|
+
|
29
|
+
_AXIS_NUMBERS
|
30
|
+
|
31
|
+
_AXIS_ORDERS
|
32
|
+
|
33
|
+
_AXIS_REVERSED
|
34
|
+
|
35
|
+
_AXIS_SLICEMAP
|
36
|
+
|
37
|
+
_accessors
|
38
|
+
|
39
|
+
_add_numeric_operations
|
40
|
+
|
41
|
+
_add_series_only_operations
|
42
|
+
|
43
|
+
_add_series_or_dataframe_operations
|
44
|
+
|
45
|
+
_agg_by_level
|
46
|
+
|
47
|
+
_agg_doc
|
48
|
+
|
49
|
+
_aggregate
|
50
|
+
|
51
|
+
_aggregate_multiple_funcs
|
52
|
+
|
53
|
+
_align_frame
|
54
|
+
|
55
|
+
_align_series
|
56
|
+
|
57
|
+
_apply_broadcast
|
58
|
+
|
59
|
+
_apply_empty_result
|
60
|
+
|
61
|
+
_apply_raw
|
62
|
+
|
63
|
+
_apply_standard
|
64
|
+
|
65
|
+
_at
|
66
|
+
|
67
|
+
_box_col_values
|
68
|
+
|
69
|
+
_box_item_values
|
70
|
+
|
71
|
+
_builtin_table
|
72
|
+
|
73
|
+
_check_inplace_setting
|
74
|
+
|
75
|
+
_check_is_chained_assignment_possible
|
76
|
+
|
77
|
+
_check_percentile
|
78
|
+
|
79
|
+
_check_setitem_copy
|
80
|
+
|
81
|
+
_clear_item_cache
|
82
|
+
|
83
|
+
_clip_with_one_bound
|
84
|
+
|
85
|
+
_clip_with_scalar
|
86
|
+
|
87
|
+
_combine_const
|
88
|
+
|
89
|
+
_combine_frame
|
90
|
+
|
91
|
+
_combine_match_columns
|
92
|
+
|
93
|
+
_combine_match_index
|
94
|
+
|
95
|
+
_combine_series
|
96
|
+
|
97
|
+
_combine_series_infer
|
98
|
+
|
99
|
+
_compare_frame
|
100
|
+
|
101
|
+
_compare_frame_evaluate
|
102
|
+
|
103
|
+
_consolidate
|
104
|
+
|
105
|
+
_consolidate_inplace
|
106
|
+
|
107
|
+
_construct_axes_dict
|
108
|
+
|
109
|
+
_construct_axes_dict_for_slice
|
110
|
+
|
111
|
+
_construct_axes_dict_from
|
112
|
+
|
113
|
+
_construct_axes_from_arguments
|
114
|
+
|
115
|
+
_constructor
|
116
|
+
|
117
|
+
_constructor_expanddim
|
118
|
+
|
119
|
+
_constructor_sliced
|
120
|
+
|
121
|
+
_convert
|
122
|
+
|
123
|
+
_count_level
|
124
|
+
|
125
|
+
_create_indexer
|
126
|
+
|
127
|
+
_cython_table
|
128
|
+
|
129
|
+
_deprecations
|
130
|
+
|
131
|
+
_dir_additions
|
132
|
+
|
133
|
+
_dir_deletions
|
134
|
+
|
135
|
+
_drop_axis
|
136
|
+
|
137
|
+
_ensure_valid_index
|
138
|
+
|
139
|
+
_expand_axes
|
140
|
+
|
141
|
+
_flex_compare_frame
|
142
|
+
|
143
|
+
_from_arrays
|
144
|
+
|
145
|
+
_from_axes
|
146
|
+
|
147
|
+
_get_agg_axis
|
148
|
+
|
149
|
+
_get_axis
|
150
|
+
|
151
|
+
_get_axis_name
|
152
|
+
|
153
|
+
_get_axis_number
|
154
|
+
|
155
|
+
_get_axis_resolvers
|
156
|
+
|
157
|
+
_get_block_manager_axis
|
158
|
+
|
159
|
+
_get_bool_data
|
160
|
+
|
161
|
+
_get_cacher
|
162
|
+
|
163
|
+
_get_index_resolvers
|
164
|
+
|
165
|
+
_get_item_cache
|
166
|
+
|
167
|
+
_get_numeric_data
|
168
|
+
|
169
|
+
_get_valid_indices
|
170
|
+
|
171
|
+
_get_value
|
172
|
+
|
173
|
+
_get_values
|
174
|
+
|
175
|
+
_getitem_array
|
176
|
+
|
177
|
+
_getitem_column
|
178
|
+
|
179
|
+
_getitem_frame
|
180
|
+
|
181
|
+
_getitem_multilevel
|
182
|
+
|
183
|
+
_getitem_slice
|
184
|
+
|
185
|
+
_gotitem
|
186
|
+
|
187
|
+
_iat
|
188
|
+
|
189
|
+
_iget_item_cache
|
190
|
+
|
191
|
+
_iloc
|
192
|
+
|
193
|
+
_indexed_same
|
194
|
+
|
195
|
+
_info_axis
|
196
|
+
|
197
|
+
_info_axis_name
|
198
|
+
|
199
|
+
_info_axis_number
|
200
|
+
|
201
|
+
_info_repr
|
202
|
+
|
203
|
+
_init_dict
|
204
|
+
|
205
|
+
_init_mgr
|
206
|
+
|
207
|
+
_init_ndarray
|
208
|
+
|
209
|
+
_internal_names
|
210
|
+
|
211
|
+
_internal_names_set
|
212
|
+
|
213
|
+
_is_builtin_func
|
214
|
+
|
215
|
+
_is_cached
|
216
|
+
|
217
|
+
_is_cython_func
|
218
|
+
|
219
|
+
_is_datelike_mixed_type
|
220
|
+
|
221
|
+
_is_mixed_type
|
222
|
+
|
223
|
+
_is_numeric_mixed_type
|
224
|
+
|
225
|
+
_is_view
|
226
|
+
|
227
|
+
_ix
|
228
|
+
|
229
|
+
_ixs
|
230
|
+
|
231
|
+
_join_compat
|
232
|
+
|
233
|
+
_loc
|
234
|
+
|
235
|
+
_maybe_cache_changed
|
236
|
+
|
237
|
+
_maybe_update_cacher
|
238
|
+
|
239
|
+
_metadata
|
240
|
+
|
241
|
+
_needs_reindex_multi
|
242
|
+
|
243
|
+
_obj_with_exclusions
|
244
|
+
|
245
|
+
_protect_consolidate
|
246
|
+
|
247
|
+
_reduce
|
248
|
+
|
249
|
+
_reindex_axes
|
250
|
+
|
251
|
+
_reindex_axis
|
252
|
+
|
253
|
+
_reindex_columns
|
254
|
+
|
255
|
+
_reindex_index
|
256
|
+
|
257
|
+
_reindex_multi
|
258
|
+
|
259
|
+
_reindex_with_indexers
|
260
|
+
|
261
|
+
_repr_data_resource_
|
262
|
+
|
263
|
+
_repr_fits_horizontal_
|
264
|
+
|
265
|
+
_repr_fits_vertical_
|
266
|
+
|
267
|
+
_repr_html_
|
268
|
+
|
269
|
+
_repr_latex_
|
270
|
+
|
271
|
+
_reset_cache
|
272
|
+
|
273
|
+
_reset_cacher
|
274
|
+
|
275
|
+
_sanitize_column
|
276
|
+
|
277
|
+
_selected_obj
|
278
|
+
|
279
|
+
_selection
|
280
|
+
|
281
|
+
_selection_list
|
282
|
+
|
283
|
+
_selection_name
|
284
|
+
|
285
|
+
_series
|
286
|
+
|
287
|
+
_set_as_cached
|
288
|
+
|
289
|
+
_set_axis
|
290
|
+
|
291
|
+
_set_axis_name
|
292
|
+
|
293
|
+
_set_is_copy
|
294
|
+
|
295
|
+
_set_item
|
296
|
+
|
297
|
+
_set_value
|
298
|
+
|
299
|
+
_setitem_array
|
300
|
+
|
301
|
+
_setitem_frame
|
302
|
+
|
303
|
+
_setitem_slice
|
304
|
+
|
305
|
+
_setup_axes
|
306
|
+
|
307
|
+
_shallow_copy
|
308
|
+
|
309
|
+
_slice
|
310
|
+
|
311
|
+
_stat_axis
|
312
|
+
|
313
|
+
_stat_axis_name
|
314
|
+
|
315
|
+
_stat_axis_number
|
316
|
+
|
317
|
+
_take
|
318
|
+
|
319
|
+
_to_dict_of_blocks
|
320
|
+
|
321
|
+
_try_aggregate_string_function
|
322
|
+
|
323
|
+
_typ
|
324
|
+
|
325
|
+
_unpickle_frame_compat
|
326
|
+
|
327
|
+
_unpickle_matrix_compat
|
328
|
+
|
329
|
+
_update_inplace
|
330
|
+
|
331
|
+
_validate_dtype
|
332
|
+
|
333
|
+
_values
|
334
|
+
|
335
|
+
_where
|
336
|
+
|
337
|
+
_xs
|
338
|
+
|
339
|
+
|
16
340
|
|
17
341
|
```
|
18
342
|
|