Clock Gating Check

Clock gating occurrences are any signals on the clock path that block (gate) the clock from propagating.• The enable path of the clock gate must arrive enough time before the clock itself to ensure glitch-free functionality (and similarly hold after the edge). source Similar Snippets Clock Gating Check – vlsi Clock Tree Structure Types –… Continue reading Clock Gating Check

Remove 1st Column Pandas Code Example

Snippet 1 df.drop(‘col_name’,1) #1 drop column / 0 drop row Snippet 2 To delete rows and columns from DataFrames, Pandas uses the “drop” function. To delete a column, or multiple columns, use the name of the column(s), and specify the “axis” as 1. Snippet 3 df = df.drop(df.columns[[0, 1, 3]], axis=1) # df.columns is zero-based… Continue reading Remove 1st Column Pandas Code Example

Latihan

Latihan Buatlah variabel dengan nama hobi, yang digunakan untuk menampung input dari user dengan label “Hobi kamu apa? : ” , kemudian Cetaklah dengan label Hobi kamu : {hobi} Buatlah variabel nama, yang digunakan untuk menampung input dari user dengan label “Siapa nama kamu? : ” , misal user mengisikan nama “Romi” maka akan tampil… Continue reading Latihan

Data Profiling

In [1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt %matplotlib inline import seaborn as sns from sklearn.preprocessing import OrdinalEncoder from sklearn.preprocessing import OneHotEncoder from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.ensemble import ExtraTreesClassifier import warnings warnings.filterwarnings(‘ignore’) In [2]: df = pd.read_csv(‘data_telco.csv’) In [3]: df.head() Out[3]: customerID gender SeniorCitizen Partner Dependents tenure… Continue reading Data Profiling

Rename Row Pandas Code Example

Snippet 1 df.rename(columns={“A”: “a”, “B”: “b”, “C”: “c”}, errors=”raise”, inplace=True) Snippet 2 >>> df.rename({1: 2, 2: 4}, axis=’index’) A B 0 1 4 2 2 5 4 3 6 Similar Snippets Rename Row Pandas Code Example – pandas Pandas Iterrows Code Example – pandas Slicing In Pandas Code Example – pandas Pandas Count Rows With… Continue reading Rename Row Pandas Code Example

Rename Rows Pandas Based On Condiions Code Example

Snippet 1 df.loc[(df.Event == ‘Dance’),’Event’]=’Hip-Hop’ df Similar Snippets Rename Row Pandas Code Example – pandas Pandas Count Rows With Value Code Example – pandas Pandas Show Top 10 Rows Code Example – pandas Pandas Iterrows Code Example – pandas Slicing In Pandas Code Example – pandas Add An Index Column Pandas Code Example – pandas… Continue reading Rename Rows Pandas Based On Condiions Code Example