neuniversity / ALY6140

1 stars 3 forks source link

Restrict data - Graphs #45

Open pr24 opened 5 years ago

pr24 commented 5 years ago

How to restrict data for plotting graphs??? please suggest.

If I want to take only 30-40 rows of data and 2 columns.

CHENGYULIU1 commented 5 years ago

Make a dew datafame for those 30~40 rows and 2 columns

ShailuKonda commented 5 years ago

IF you want only two columns, you take those required columns by specifying the range of rows in another data frame. You can try this one. df= df[[column 1, column 2]].head(30)