回答編集履歴
4
インスタンス化しないとインスタンス変数出ないじゃん。結論に変更はなし
answer
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```python
|
|
6
6
|
>>> import re, pandas as pd
|
|
7
|
-
>>> for x in dir(pd.DataFrame):
|
|
7
|
+
>>> for x in dir(pd.DataFrame()):
|
|
8
8
|
... if re.search("^_[^_]", x):
|
|
9
9
|
... print(x)
|
|
10
10
|
...
|
3
追記
answer
CHANGED
|
@@ -170,4 +170,10 @@
|
|
|
170
170
|
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
どうせ「紳士協定」なので、面倒くさくなる`__`はほとんど見かけない印象があります。
|
|
173
|
+
どうせ「紳士協定」なので、面倒くさくなる`__`はほとんど見かけない印象があります。
|
|
174
|
+
|
|
175
|
+
なので、
|
|
176
|
+
|
|
177
|
+
> 現場ではpublicとprivate(らしいもの)のどちらが基本ですか?
|
|
178
|
+
|
|
179
|
+
に対しては「(命名規則でprivate的に扱うと決めているだけの)publicが基本」と答えるべきかもしれません。
|
2
修正
answer
CHANGED
|
@@ -169,6 +169,5 @@
|
|
|
169
169
|
_xs
|
|
170
170
|
|
|
171
171
|
```
|
|
172
|
-
(コードブロック内は折り返してくれないので、じっくり見たい方はエディタにコピペしてご鑑賞ください)
|
|
173
172
|
|
|
174
173
|
どうせ「紳士協定」なので、面倒くさくなる`__`はほとんど見かけない印象があります。
|
1
やっぱり一行ずつ見ることにした。
answer
CHANGED
|
@@ -4,8 +4,170 @@
|
|
|
4
4
|
|
|
5
5
|
```python
|
|
6
6
|
>>> import re, pandas as pd
|
|
7
|
-
>>>
|
|
8
|
-
[
|
|
7
|
+
>>> for x in dir(pd.DataFrame):
|
|
8
|
+
... if re.search("^_[^_]", x):
|
|
9
|
+
... print(x)
|
|
10
|
+
...
|
|
11
|
+
_AXIS_ALIASES
|
|
12
|
+
_AXIS_IALIASES
|
|
13
|
+
_AXIS_LEN
|
|
14
|
+
_AXIS_NAMES
|
|
15
|
+
_AXIS_NUMBERS
|
|
16
|
+
_AXIS_ORDERS
|
|
17
|
+
_AXIS_REVERSED
|
|
18
|
+
_AXIS_SLICEMAP
|
|
19
|
+
_accessors
|
|
20
|
+
_add_numeric_operations
|
|
21
|
+
_add_series_only_operations
|
|
22
|
+
_add_series_or_dataframe_operations
|
|
23
|
+
_agg_by_level
|
|
24
|
+
_agg_doc
|
|
25
|
+
_aggregate
|
|
26
|
+
_aggregate_multiple_funcs
|
|
27
|
+
_align_frame
|
|
28
|
+
_align_series
|
|
29
|
+
_apply_broadcast
|
|
30
|
+
_apply_empty_result
|
|
31
|
+
_apply_raw
|
|
32
|
+
_apply_standard
|
|
33
|
+
_at
|
|
34
|
+
_box_col_values
|
|
35
|
+
_box_item_values
|
|
36
|
+
_builtin_table
|
|
37
|
+
_check_inplace_setting
|
|
38
|
+
_check_is_chained_assignment_possible
|
|
39
|
+
_check_percentile
|
|
40
|
+
_check_setitem_copy
|
|
41
|
+
_clear_item_cache
|
|
42
|
+
_clip_with_one_bound
|
|
43
|
+
_clip_with_scalar
|
|
44
|
+
_combine_const
|
|
45
|
+
_combine_frame
|
|
46
|
+
_combine_match_columns
|
|
47
|
+
_combine_match_index
|
|
48
|
+
_combine_series
|
|
49
|
+
_combine_series_infer
|
|
50
|
+
_compare_frame
|
|
51
|
+
_compare_frame_evaluate
|
|
52
|
+
_consolidate
|
|
53
|
+
_consolidate_inplace
|
|
54
|
+
_construct_axes_dict
|
|
55
|
+
_construct_axes_dict_for_slice
|
|
56
|
+
_construct_axes_dict_from
|
|
57
|
+
_construct_axes_from_arguments
|
|
58
|
+
_constructor
|
|
59
|
+
_constructor_expanddim
|
|
60
|
+
_constructor_sliced
|
|
61
|
+
_convert
|
|
62
|
+
_count_level
|
|
63
|
+
_create_indexer
|
|
64
|
+
_cython_table
|
|
65
|
+
_deprecations
|
|
66
|
+
_dir_additions
|
|
67
|
+
_dir_deletions
|
|
68
|
+
_drop_axis
|
|
69
|
+
_ensure_valid_index
|
|
70
|
+
_expand_axes
|
|
71
|
+
_flex_compare_frame
|
|
72
|
+
_from_arrays
|
|
73
|
+
_from_axes
|
|
74
|
+
_get_agg_axis
|
|
75
|
+
_get_axis
|
|
76
|
+
_get_axis_name
|
|
77
|
+
_get_axis_number
|
|
78
|
+
_get_axis_resolvers
|
|
79
|
+
_get_block_manager_axis
|
|
80
|
+
_get_bool_data
|
|
81
|
+
_get_cacher
|
|
82
|
+
_get_index_resolvers
|
|
83
|
+
_get_item_cache
|
|
84
|
+
_get_numeric_data
|
|
85
|
+
_get_valid_indices
|
|
86
|
+
_get_value
|
|
87
|
+
_get_values
|
|
88
|
+
_getitem_array
|
|
89
|
+
_getitem_column
|
|
90
|
+
_getitem_frame
|
|
91
|
+
_getitem_multilevel
|
|
92
|
+
_getitem_slice
|
|
93
|
+
_gotitem
|
|
94
|
+
_iat
|
|
95
|
+
_iget_item_cache
|
|
96
|
+
_iloc
|
|
97
|
+
_indexed_same
|
|
98
|
+
_info_axis
|
|
99
|
+
_info_axis_name
|
|
100
|
+
_info_axis_number
|
|
101
|
+
_info_repr
|
|
102
|
+
_init_dict
|
|
103
|
+
_init_mgr
|
|
104
|
+
_init_ndarray
|
|
105
|
+
_internal_names
|
|
106
|
+
_internal_names_set
|
|
107
|
+
_is_builtin_func
|
|
108
|
+
_is_cached
|
|
109
|
+
_is_cython_func
|
|
110
|
+
_is_datelike_mixed_type
|
|
111
|
+
_is_mixed_type
|
|
112
|
+
_is_numeric_mixed_type
|
|
113
|
+
_is_view
|
|
114
|
+
_ix
|
|
115
|
+
_ixs
|
|
116
|
+
_join_compat
|
|
117
|
+
_loc
|
|
118
|
+
_maybe_cache_changed
|
|
119
|
+
_maybe_update_cacher
|
|
120
|
+
_metadata
|
|
121
|
+
_needs_reindex_multi
|
|
122
|
+
_obj_with_exclusions
|
|
123
|
+
_protect_consolidate
|
|
124
|
+
_reduce
|
|
125
|
+
_reindex_axes
|
|
126
|
+
_reindex_axis
|
|
127
|
+
_reindex_columns
|
|
128
|
+
_reindex_index
|
|
129
|
+
_reindex_multi
|
|
130
|
+
_reindex_with_indexers
|
|
131
|
+
_repr_data_resource_
|
|
132
|
+
_repr_fits_horizontal_
|
|
133
|
+
_repr_fits_vertical_
|
|
134
|
+
_repr_html_
|
|
135
|
+
_repr_latex_
|
|
136
|
+
_reset_cache
|
|
137
|
+
_reset_cacher
|
|
138
|
+
_sanitize_column
|
|
139
|
+
_selected_obj
|
|
140
|
+
_selection
|
|
141
|
+
_selection_list
|
|
142
|
+
_selection_name
|
|
143
|
+
_series
|
|
144
|
+
_set_as_cached
|
|
145
|
+
_set_axis
|
|
146
|
+
_set_axis_name
|
|
147
|
+
_set_is_copy
|
|
148
|
+
_set_item
|
|
149
|
+
_set_value
|
|
150
|
+
_setitem_array
|
|
151
|
+
_setitem_frame
|
|
152
|
+
_setitem_slice
|
|
153
|
+
_setup_axes
|
|
154
|
+
_shallow_copy
|
|
155
|
+
_slice
|
|
156
|
+
_stat_axis
|
|
157
|
+
_stat_axis_name
|
|
158
|
+
_stat_axis_number
|
|
159
|
+
_take
|
|
160
|
+
_to_dict_of_blocks
|
|
161
|
+
_try_aggregate_string_function
|
|
162
|
+
_typ
|
|
163
|
+
_unpickle_frame_compat
|
|
164
|
+
_unpickle_matrix_compat
|
|
165
|
+
_update_inplace
|
|
166
|
+
_validate_dtype
|
|
167
|
+
_values
|
|
168
|
+
_where
|
|
169
|
+
_xs
|
|
170
|
+
|
|
9
171
|
```
|
|
10
172
|
(コードブロック内は折り返してくれないので、じっくり見たい方はエディタにコピペしてご鑑賞ください)
|
|
11
173
|
|