Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

CX_Oracle - import data from Oracle to Pandas dataframe

query = """SELECT* 
           FROM TRANSACTION
           WHERE DIA_DAT >=to_date('15.02.28 00:00:00',  'YY.MM.DD HH24:MI:SS')
           AND (locations <> 'PUERTO RICO'
           OR locations <> 'JAPAN')
           AND CITY='LONDON'"""
df_ora = pd.read_sql(query, con=connection)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #data #Oracle #Pandas #dataframe
ADD COMMENT
Topic
Name
4+8 =