Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

How can you filter out a column and create a new data frame

$
0
0

Please write code create a new dataframe called "df2" to extract from df1 observations where the value in column "purpose" is "house". In other words, please filter df1 where purpose = "house", and save that new dataframe as "df2".

enter image description here


Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>