MLJAR logo
  • Products
    • MLJAR Studio
    • Piece of Code
    • AutoML
    • Mercury
  • Docs
  • Notebooks
  • Pricing
  • Contact
Get MLJAR Studio
  • MLJAR Studio

    • Quick start
    • Install
    • Uninstall
    • New notebook
    • Install new packages
  • AI Assistant

  • Code Recipes

  • Python

    • Display Python version
    • Install Package
    • Get current time
    • Get working directory
    • Get environment variable
    • Add .env variable
    • Load secrets from .env
    • Random integer
    • Time delay
    • Check if file exists
    • List files
    • Read file
    • Write to file
    • Append to file
    • Delete file
    • Copy file
    • Delete directory
    • Read JSON from file
    • Write JSON to file
    • Pretty print JSON
  • Markdown

    • Read data

      • Sample datasets
      • Read CSV
      • Read Excel
      • Read XML
      • Load Pickle
      • Read HTML
      • Read Parquet
      • Read SPSS
      • Read Stata
      • Read SAS
    • Write data

      • Write CSV
      • Write Parquet
      • Save to Pickle
    • Postgresql

      • Define a new connection
      • Connect to database
      • Show all tables
      • Show all columns
      • Raw query to Pandas
      • Raw query
      • Run select query
      • Run insert query
      • Create table
      • Drop table
    • Data wrangling

      • DataFrame info
      • DataFrame describe
      • Display DataFrame
      • Select X,y
      • Select Columns
      • Filter rows
      • Delete Column
      • Split to train/test
      • Check missing values
      • Fill missing values
      • Use imputer on new data
      • Categorical to integer
      • Use encoder on new data
    • matplotlib

      • Scatter plot
    • Scikit-learn

      • Decision Tree
      • Random Forest
      • k-Nearest Neighbors
      • Train Model
      • Compute Predictions
      • Visualize Decision Tree
      • Hyper Parameters Search
      • Feature Importance
      • Compute Metric
      • Confusion Matrix
      • ROC Curve
      • Precision-Recall
      • Lift Chart
      • Calibration PLot
    • MLJAR AutoML

      • Train AutoML
      • Predict with AutoML
      • AutoML report
      • Load AutoML
    • Images Operations

      • Remove background from single image
      • Remove background from multiple images
      • Show Image
    • OpenAI

      • Client connection
      • AI Image Generator
      • Chat Completion

    Cookbook

    Postgresql

    Tool which allows you to define new Postgrasql database connection with credentials stored in .env file. Exqcute sql queries such as SELECT, CREATE TABLE, DROP TABLE, UPDATE TABLE.

    • Define a new connection

      Define new database connection using simple Python code. Provide database credentails ...
    • Connect to database

      Open new Postgresql database connection using simple Python code. Credentials are ...
    • Show all tables

      List all tables of previously configured Postgresql database connection. Choose ...
    • Show all columns

      List all columns of previously configured Postgresql database connection. Provide ...
    • Raw query to Pandas

      Run a sql query usign previously configured Postgresql connection and crate pandas ...
    • Raw query

      Simply run a sql query usign previously configured Postgresql connection. You can ...
    • Run select query

      Execute sql select query on previously configured Postgresql connection. Credentials ...
    • Run insert query

      Execute sql insert query on previously configured Postgresql connection. Credentials ...
    • Create table

      Create new database table usign previously configured Postgresql connection. Credentials ...
    • Drop table

      Drop table from database usign previously configured Postgresql connection. Credentials ...
    « Previous
    Save to Pickle
    Next »
    Define a new connection
    MLJAR

    Programming tools for everyone!

    • Terms of Service ·
    • Privacy Policy
      Resources
      • Example Python notebooks
      • Fix ModuleNotFoundError
      • Glossary
      • Brand
      • Answers
      Products
      • MLJAR Studio
      • Piece of Code
      • AutoML
      • Mercury
      Company
      • Contact us
      • Services
      • About us
      • Blog
      Made by MLJAR. All rights reserved.