Skip to content

Commit 0ce463d

Browse files
authored
DOC: Minor typo fixes for code style guide (#32379)
1 parent 01f3998 commit 0ce463d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/source/development/code_style.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Patterns
2121
foo.__class__
2222
-------------
2323

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
2525
readable.
2626

2727
For example:
@@ -52,8 +52,8 @@ f-strings
5252

5353
*pandas* uses f-strings formatting instead of '%' and '.format()' string formatters.
5454

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.
5757

5858
For example:
5959

@@ -86,8 +86,8 @@ For example:
8686
White spaces
8787
~~~~~~~~~~~~
8888

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.
9191

9292
For example:
9393

@@ -116,7 +116,7 @@ Representation function (aka 'repr()')
116116

117117
*pandas* uses 'repr()' instead of '%r' and '!r'.
118118

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.
120120

121121
For example:
122122

@@ -138,7 +138,7 @@ For example:
138138
Imports (aim for absolute)
139139
==========================
140140

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
142142
like ``import string`` will import the string module rather than ``string.py``
143143
in the same directory. As much as possible, you should try to write out
144144
absolute imports that show the whole import chain from top-level pandas.

0 commit comments

Comments
 (0)