Tag: dataframe

62 votes
15 answers
748 views
Convert pandas dataframe to NumPy array

I am interested in knowing how to convert a pandas dataframe into a NumPy array. dataframe: import numpy as

avatar
Patsy
0 1 0 9
asked 07 September, 2021
53 votes
11 answers
1.3K views
How do I select rows from a DataFrame based on column values?

How can I select rows from a DataFrame based on values in some column in Pandas? In SQL, I would use: SELECT *

avatar
Freida
0 1 0 9
asked 07 September, 2021
54 votes
29 answers
2.8K views
How to iterate over rows in a DataFrame in Pandas

I have a DataFrame from Pandas: import pandas as pd inp = [{'c1':10, 'c2':100}, {'c1

avatar
Frederick
0 1 0 9
asked 07 September, 2021