Skip to content

Commit cba5720

Browse files
committed
Merge pull request #7624 from bwignall/quickfix_depr
CLN: Fix typo
2 parents bfc3a12 + 0a533dd commit cba5720

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pandas/io/sql.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def execute(sql, con, cur=None, params=None):
8888
Using SQLAlchemy makes it possible to use any DB supported by that
8989
library.
9090
If a DBAPI2 object, only sqlite3 is supported.
91-
cur : depreciated, cursor is obtained from connection
91+
cur : deprecated, cursor is obtained from connection
9292
params : list or tuple, optional
9393
List of parameters to pass to execute method.
9494
@@ -134,15 +134,15 @@ def tquery(sql, con=None, cur=None, retry=True):
134134
sql: string
135135
SQL query to be executed
136136
con: DBAPI2 connection
137-
cur: depreciated, cursor is obtained from connection
137+
cur: deprecated, cursor is obtained from connection
138138
139139
Returns
140140
-------
141141
Results Iterable
142142
143143
"""
144144
warnings.warn(
145-
"tquery is depreciated, and will be removed in future versions. "
145+
"tquery is deprecated, and will be removed in future versions. "
146146
"You can use ``execute(...).fetchall()`` instead.",
147147
FutureWarning)
148148

@@ -187,7 +187,7 @@ def uquery(sql, con=None, cur=None, retry=True, params=None):
187187
sql: string
188188
SQL query to be executed
189189
con: DBAPI2 connection
190-
cur: depreciated, cursor is obtained from connection
190+
cur: deprecated, cursor is obtained from connection
191191
params: list or tuple, optional
192192
List of parameters to pass to execute method.
193193
@@ -197,7 +197,7 @@ def uquery(sql, con=None, cur=None, retry=True, params=None):
197197
198198
"""
199199
warnings.warn(
200-
"uquery is depreciated, and will be removed in future versions. "
200+
"uquery is deprecated, and will be removed in future versions. "
201201
"You can use ``execute(...).rowcount`` instead.",
202202
FutureWarning)
203203

@@ -1153,21 +1153,21 @@ def get_sqltype(dtype, flavor):
11531153
# legacy names, with depreciation warnings and copied docs
11541154

11551155
def read_frame(*args, **kwargs):
1156-
"""DEPRECIATED - use read_sql
1156+
"""DEPRECATED - use read_sql
11571157
"""
1158-
warnings.warn("read_frame is depreciated, use read_sql", FutureWarning)
1158+
warnings.warn("read_frame is deprecated, use read_sql", FutureWarning)
11591159
return read_sql(*args, **kwargs)
11601160

11611161

11621162
def frame_query(*args, **kwargs):
1163-
"""DEPRECIATED - use read_sql
1163+
"""DEPRECATED - use read_sql
11641164
"""
1165-
warnings.warn("frame_query is depreciated, use read_sql", FutureWarning)
1165+
warnings.warn("frame_query is deprecated, use read_sql", FutureWarning)
11661166
return read_sql(*args, **kwargs)
11671167

11681168

11691169
def write_frame(frame, name, con, flavor='sqlite', if_exists='fail', **kwargs):
1170-
"""DEPRECIATED - use to_sql
1170+
"""DEPRECATED - use to_sql
11711171
11721172
Write records stored in a DataFrame to a SQL database.
11731173
@@ -1200,7 +1200,7 @@ def write_frame(frame, name, con, flavor='sqlite', if_exists='fail', **kwargs):
12001200
pandas.DataFrame.to_sql
12011201
12021202
"""
1203-
warnings.warn("write_frame is depreciated, use to_sql", FutureWarning)
1203+
warnings.warn("write_frame is deprecated, use to_sql", FutureWarning)
12041204

12051205
# for backwards compatibility, set index=False when not specified
12061206
index = kwargs.pop('index', False)

0 commit comments

Comments
 (0)