PYTHON PANDAS loc[] & iloc[]

.loc[] .loc[]/ is used to select/access a subset from a DataFrame using row/column names. Syntax: <DataFrameObject>.loc[<start row>: <end row>,<start column>:<end column>] To access a row: <DF object>.loc[<row label>,:] To access multiple rows: <DF object>.loc[<start row>:<end row>,:] To access selective columns: <DF object>.loc[:,<start column>:<end column>] To access range of columns and rows: <DF object>.loc[<start row>:<end row>,<start … Continue reading PYTHON PANDAS loc[] & iloc[]

ZFILL IN PYTHON

The zfill() method adds zeros (0) at the beginning of the string, until it reaches the specific length. If the value of the len parameter is less than the length of the string, no filling is done. Syntax: string.zfill(len) parameter: len A number specifying the position of the element you want to remove. EXAMPLES: a=”hello” … Continue reading ZFILL IN PYTHON

TERMINOLOGIES

These are some of the terminologies you needed to understand the machine learning. model A mathematical representation of a real world process; a predictive model forecasts a future outcome based on past behaviors. training The process of creating a model from the training data. The data is fed into the training algorithm, which learn a … Continue reading TERMINOLOGIES

Design a site like this with WordPress.com
Get started