Skip to content

Commit

Permalink
Removed use of deprecated flavor argument within pandas. (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinevans authored and abooton committed May 18, 2018
1 parent ed3411a commit fc48215
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/improver/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ def determine_schema(self, table):
# Find the number of columns which were indexes to index primary keys
n_keys = len(new_df.columns) - len(self.df.columns)
schema = pd.io.sql.get_schema(new_df, table,
flavor='sqlite',
keys=new_df.columns[:n_keys])
return schema

Expand Down
3 changes: 0 additions & 3 deletions lib/improver/tests/database/test_SpotDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,6 @@ def setUp(self):
"index")
self.dataframe = self.plugin.to_dataframe(cubes)

@ManageWarnings(
ignored_messages=["the 'flavor' parameter is deprecated"],
warning_types=[FutureWarning])
def test_full_schema(self):
"""Basic test using a basic dataframe as input"""
schema = self.plugin.determine_schema("improver")
Expand Down

0 comments on commit fc48215

Please sign in to comment.