Select across Multiple Columns of a Python Pandas dataset

Опубликовано: 23 Сентябрь 2024
на канале: technologyCult
907
11

Select across Multiple Columns of a Python Pandas dataset

Github link -

Select across Multiple Columns of a dataset -

Code Starts Here
==============

import pandas as pd

df = pd.read_csv('train.csv')


1000 Columns - 0, 50-100, 500-550, 900-950

Train Dataset

0, 3-6 , 9:12

feature1 = df.iloc[:,0].values
feature2 = df.iloc[:,3:7].values
feature3 = df.iloc[:,9:13].values


df1 = pd.DataFrame(feature1)
df2 = pd.DataFrame(feature2)
df3 = pd.DataFrame(feature3)

frames = [df1,df2,df3]

dataset = pd.concat(frames,axis=1)

All Playlist of this youtube channel
==================================

1. Data Preprocessing in Machine Learning


2. Confusion Matrix in Machine Learning, ML, AI


3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz


4. Cross Validation, Sampling, train test split in Machine Learning


5. Drop and Delete Operations in Python Pandas


6. Matrices and Vectors with python


7. Detect Outliers in Machine Learning


8. TimeSeries preprocessing in Machine Learning


9. Handling Missing Values in Machine Learning


10. Dummy Encoding Encoding in Machine Learning


11. Data Visualisation with Python, Seaborn, Matplotlib


12. Feature Scaling in Machine Learning


13. Python 3 basics for Beginner


14. Statistics with Python


15. Sklearn Scikit Learn Machine Learning


16. Python Pandas Dataframe Operations


17. Linear Regression, Supervised Machine Learning



18 Interiew Questions on Machine Learning and Data Science


19. Jupyter Notebook Operations