Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 104161

pandas is a python library for Panel Data manipulation and analysis, e.g. multidimensional time series and cross-sectional data sets commonly found in statistics, experimental science results, econometrics, or finance.

2 votes
Accepted

Building a summary string in a Pandas groupby (Possibly cross-tab or pivot-table question)

Say you have a dataframe of your data in this format: df = pd.DataFrame({ 'name': ['Bob', 'Bob', 'Bob', 'Tim', 'Tim', 'Tim'], 'fruit': ['Oranges', 'Apples', 'Bananas', 'Oranges', 'Apples', 'Ba …
Oliver Foster's user avatar
1 vote

Pandas get_dummies() rows dropping after joining back with X

Can you post your code when you join the datasets? It's possible you're joining in a different way than you had intended. See the following helpful tutorial for figuring out exactly how you want to jo …
Oliver Foster's user avatar
0 votes
Accepted

Unable to successfully merge dataframes in pandas along labels

Try the following: new_df = pd.merge(df, df1, how='left', left_on=["Year", "Country"], right_on = ["Year", "Country"])
Oliver Foster's user avatar