mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-11-04 01:25:46 +01:00 
			
		
		
		
	refactor: pandas.read_sql_query renamed to read_sql and can now also
directly extract full tables.
This commit is contained in:
		
					parent
					
						
							
								1d492dfa67
							
						
					
				
			
			
				commit
				
					
						de51d6ca07
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -60,7 +60,7 @@ def test_sql(tmp_path):
 | 
			
		|||
    my_db = (tmp_path / "test_db.sqlite").as_posix()
 | 
			
		||||
    pe.input.pandas.to_sql(pe_df, "My_table", my_db)
 | 
			
		||||
    for auto_gamma in [False, True]:
 | 
			
		||||
        re_df = pe.input.pandas.read_sql_query("SELECT * from My_table", my_db, auto_gamma=auto_gamma)
 | 
			
		||||
        re_df = pe.input.pandas.read_sql("SELECT * from My_table", my_db, auto_gamma=auto_gamma)
 | 
			
		||||
        assert np.all(re_df == pe_df)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue