Python – Group By
import pandas as pd %% import pandas as pd %%
SQL – Group By
-- More than one condition in more than one column--
Python – Check out a dataframe using dtypes, describe and info functions
import pandas as pd df = pd.read_csv('C:\Data\sample_data\california_housing_test.csv') df Data types
SQL – Check out columns and datatypes of an SQLite database table and PRAGMA
In SQLite, there is no direct equivalent of the describe()
Python – Delete a row of data from a python pandas dataframe
import pandas as pd df = pd.read_csv('C:\Data\sample_data\california_housing_test.csv') df df.loc[3000] =
SQL – Delete a row of data from an SQLite table with DBeaver
1.Select * From tablename 2.INSERT INTO tablename(longitude, latitude, housing_median_age, total_rooms,
Python – Update a Pandas Dataframe Cell Based on Column and Row
#%% import pandas as pddf = pd.read_csv('C:\Data\sample_data\california_housing_test.csv') #%% df #%%
SQL – Update data in an SQLite table with DBeaver
Select * From tablename Select * From tablename Where longitude
Insert data into a python pandas dataframe
Importing the necessary libraries and loading the data:import pandas as
SQL – Insert data into an SQLite table with DBeaver
1.Select * From tablename 2.INSERT INTO tablename(longitude, latitude, housing_median_age, total_rooms,
1 2 3 5