@@ -21,7 +21,7 @@ Patterns
21
21
foo.__class__
22
22
-------------
23
23
24
- *pandas * uses 'type(foo)' instead 'foo.__class__' as it is making the code more
24
+ *pandas * uses 'type(foo)' instead 'foo.__class__' as it makes the code more
25
25
readable.
26
26
27
27
For example:
@@ -52,8 +52,8 @@ f-strings
52
52
53
53
*pandas * uses f-strings formatting instead of '%' and '.format()' string formatters.
54
54
55
- The convention of using f-strings on a string that is concatenated over serveral lines,
56
- is to prefix only the lines containing the value needs to be interpeted .
55
+ The convention of using f-strings on a string that is concatenated over several lines,
56
+ is to prefix only the lines containing values which need to be interpreted .
57
57
58
58
For example:
59
59
@@ -86,8 +86,8 @@ For example:
86
86
White spaces
87
87
~~~~~~~~~~~~
88
88
89
- Putting the white space only at the end of the previous line, so
90
- there is no whitespace at the beggining of the concatenated string.
89
+ Only put white space at the end of the previous line, so
90
+ there is no whitespace at the beginning of the concatenated string.
91
91
92
92
For example:
93
93
@@ -116,7 +116,7 @@ Representation function (aka 'repr()')
116
116
117
117
*pandas * uses 'repr()' instead of '%r' and '!r'.
118
118
119
- The use of 'repr()' will only happend when the value is not an obvious string.
119
+ The use of 'repr()' will only happen when the value is not an obvious string.
120
120
121
121
For example:
122
122
@@ -138,7 +138,7 @@ For example:
138
138
Imports (aim for absolute)
139
139
==========================
140
140
141
- In Python 3, absolute imports are recommended. In absolute import doing something
141
+ In Python 3, absolute imports are recommended. Using absolute imports, doing something
142
142
like ``import string `` will import the string module rather than ``string.py ``
143
143
in the same directory. As much as possible, you should try to write out
144
144
absolute imports that show the whole import chain from top-level pandas.
0 commit comments