Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged pandas
0
votes
Q: How do I get the row count of a pandas DataFrame?
I'm trying to get the number of rows of dataframe df with Pandas, and here is my code. Method 1: total_rows ... What am I doing wrong? Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
pandas
dataframe
0
votes
Q: Pandas index column title or name
How do I get the index column name in python pandas? Here's an example dataframe: Index Title Column 1 Apples 1 ... how to do this? Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
machine-learning
python
pandas
dataframe
0
votes
Q: count the frequency that a value occurs in a dataframe column
I have a dataset |category| cat a cat b cat a I'd like to be able to return something like (showing unique values ... cat a 2 cat b 1 Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
python
pandas
dataframe
machine-learning
0
votes
Q: grouping rows in list in pandas groupby
I have a pandas data frame like: a b A 1 A 2 B 5 B 5 B 4 C 6 I want to group by the ... do something like this using pandas groupby? Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
machine-learning
python
pandas
0
votes
Q: Get list from pandas DataFrame column headers
I want to get a list of the column headers from a pandas DataFrame. The DataFrame will come from user input so I don ... 'gdp', 'cap'] Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
machine-learning
pandas
python
0
votes
Q: ValueError: DataFrame constructor not properly called! with pandas
def multiple_dfs(xyz_file, sheet, *args): row=2 writer = pd.ExcelWriter(xyz_file, engine='openpyxl') df = pd. ... help me over this? Select the correct answer from above options...
asked
Jan 23, 2022
in
Education
by
JackTerrance
python
python-faq
pandas
0
votes
Q: How to split data into 3 sets (train, validation and test)?
I wish to divide pandas dataframe to 3 separate sets. I know by using train_test_split from sklearn.cross_validation, ... ? kindly help Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
pandas
numpy
dataframe
scikit-learn
0
votes
Q: Select rows from a DataFrame based on values in a column in pandas
I want to select rows from a DataFrame based on values in some column in pandas, How can I do it? I ... WHERE column_name = some_value Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
pandas
dataframe
value
0
votes
Q: Renaming columns in pandas
I created a dataframe and column labels in pandas and I need to edit in order to replace the original column ... names. Please help? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
replace
pandas
dataframe
0
votes
Q: What is the difference between size and count in pandas?
What exactly is the difference between groupby("x").count and groupby("x").size in Pandas? Select the correct answer from above options...
asked
Jan 21, 2022
in
Education
by
JackTerrance
python
numpy
pandas
difference
Page:
« prev
1
2
...