Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to show up the duplicate?
Post: How to show up the duplicate?
Hi there,
this is my data set:
user_id timestamp group landing_page converted
0 851104 2017-01-21 22:11:48.556739 control old_page 0
1 804228 2017-01-12 08:01:45.159739 control old_page 0
2 661590 ... |
|
Jack_Sparrow |
General Coding Help |
1 |
2,059 |
Jul-30-2018, 09:54 AM |
|
|
Thread: Ho to create a bar chart with two specific columns?
Post: Ho to create a bar chart with two specific columns...
Hello there
this is my data set
Vote_count vote_average
2000 4,5
500 5
3500 4
3000 3,5
2700 4,5
1500 3,5
I want to count how many people (vote_count) gave which rating in one bar chart (x axis: rat... |
|
Jack_Sparrow |
General Coding Help |
1 |
2,358 |
Jun-24-2018, 12:34 PM |
|
|
Thread: Fix: Series' object is not callable
Post: RE: Fix: Series' object is not callable
I just filtered my data set to the Film "Star Trek"
df_star_trek = df[df['original_title'].str.contains("Star Trek", na=False)]I changed the brackets from () to []
Now I have this mistake
NameError: ... |
|
Jack_Sparrow |
General Coding Help |
3 |
25,447 |
Jun-23-2018, 02:07 PM |
|
|
Thread: Fix: Series' object is not callable
Post: Fix: Series' object is not callable
Hello there
this is my data set
Vote_count vote_average
2000 4,5
500 5
3500 4
3000 3,5
2700 ... |
|
Jack_Sparrow |
General Coding Help |
3 |
25,447 |
Jun-23-2018, 11:16 AM |
|
|
Thread: HOw define the colors for two columns?
Post: HOw define the colors for two columns?
Hi there,
I am trying to define some colors for two dimensions.
this is my code, where I defined the colors.
#what is the vote avarage for Star Wars and Star Treck?
avg_starwars = df_star... |
|
Jack_Sparrow |
Data Science |
3 |
2,796 |
Jun-15-2018, 02:17 PM |
|
|
Thread: Conditional If Statement: If value contains string then set another column equal to s
Post: Conditional If Statement: If value contains string...
I have a column 'original_title', where I have different film titles i.a. all films of Star Wars (+ the name of the episode) and Star Trek (+ the name of the episode). I want to create one column whic... |
|
Jack_Sparrow |
Data Science |
2 |
4,918 |
Jun-15-2018, 11:42 AM |
|
|
Thread: How to add lables to the scatter plot?
Post: How to add lables to the scatter plot?
Hello everyone,
I created a scatter plot with two numbers (Budget & Revenue)
df.plot(x='budget_adj', y = 'revenue_adj', kind = 'scatter');And now I want to add the labeling to the points on my s... |
|
Jack_Sparrow |
Data Science |
3 |
3,270 |
Jun-10-2018, 02:33 PM |
|
|
Thread: how often does a word occur in this column?
Post: how often does a word occur in this column?
Hello there,
I have data like this
Genres
Action|Adventure
Action|Adventure|Animation
Action|Adventure|Animation|Comedy|Drama
Action|Adventure|Animation|Comedy|Family
Action|Adventure|Animation|Drama... |
|
Jack_Sparrow |
Data Science |
6 |
5,100 |
Jun-10-2018, 01:50 PM |
|
|
Thread: Atom, Anaconda & Co.
Post: RE: Atom, Anaconda & Co.
I have follow table:
(6 cyl) 409
(4 cyl) 283
(8 cyl) 199
(5 cyl) 48
(12 cyl) 30
(10 cyl) 14
(2 cyl) 2
(16 cyl) 1
I extracted int from the (:, 0) so I have only 6 ... |
|
Jack_Sparrow |
Data Science |
6 |
7,543 |
May-26-2018, 01:46 PM |
|
|
Thread: time.time() - What does it mean?
Post: time.time() - What does it mean?
Hello there,
I am a new user of Python and I don't understand, what does this mean?
time.time()
I found this description to that:
Return the time in seconds since the epoch as a floating point nu... |
|
Jack_Sparrow |
General Coding Help |
1 |
2,720 |
May-24-2018, 09:12 AM |
|
|
Thread: How many unique values of quality are in this dataset?
Post: How many unique values of quality are in this data...
Hi there, I got stuck on this problem:
I need to answer this question: How many unique values of quality are in this dataset?
I tried out to answer this question with this function:
import pandas ... |
|
Jack_Sparrow |
Data Science |
1 |
3,134 |
May-20-2018, 01:23 PM |
|
|
Thread: Indentationerror
Post: RE: Indentationerror
moving the if statement to the left :) |
|
Jack_Sparrow |
General Coding Help |
4 |
4,217 |
May-16-2018, 05:50 PM |
|
|
Thread: Filtering by city /Question by beginner
Post: Filtering by city /Question by beginner
Hi there,
I have a task:
I have 3 different csv files (chicago.csv, ney_york.csv and washington csv.) All three files have the same columns with different data. Now I want to ask user (using python... |
|
Jack_Sparrow |
Data Science |
1 |
3,406 |
May-15-2018, 06:47 PM |
|
|
Thread: Indentationerror
Post: RE: Indentationerror
I did:
df['month'] = df['Start Time'].dt.month
df['day_of_week'] = df['Start Time'].dt.weekday_name
if weekday !='all':
# filter by day of week to create the new dataframe
... |
|
Jack_Sparrow |
General Coding Help |
4 |
4,217 |
May-15-2018, 06:10 PM |
|
|
Thread: Indentationerror
Post: Indentationerror
Hi there
I have followed error:
Indentationerror: unindent does not match any outer indentation level
It is all about this line: if weekday != 'all': and this one: if month != 'all':
in this statem... |
|
Jack_Sparrow |
General Coding Help |
4 |
4,217 |
May-15-2018, 05:41 PM |
|
|
Thread: Simple If Statement doesn't work
Post: RE: Simple If Statement doesn't work
good idea!
How can I access the dictionary values?
df['Start Time'] = pd.to_datetime(df['Start Time'])
df['month'] = df['Start Time'].dt.month
popular_month = df['month'].mode()[0]
month_name = [1 ... |
|
Jack_Sparrow |
General Coding Help |
3 |
3,441 |
May-14-2018, 09:19 AM |
|
|
Thread: Simple If Statement doesn't work
Post: Simple If Statement doesn't work
Hi guys,
I have this column:
Start Time
0 2017-05-29 18:36:27
1 2017-06-12 19:00:33
2 2017-02-13 17:02:02
3 2017-04-24 18:39:45
4 2017-01-26 15:36:07
I want to calculate the Mos... |
|
Jack_Sparrow |
General Coding Help |
3 |
3,441 |
May-14-2018, 09:01 AM |
|
|
Thread: Question from beginners: how to combine 2 columns
Post: Question from beginners: how to combine 2 columns
Hi guys,
I have one table with a lot of columns: Two of them are Start Station and End Station
Start Station
0 Columbus Dr & Randolph St ... |
|
Jack_Sparrow |
Data Science |
1 |
2,963 |
May-12-2018, 03:03 PM |
|
|
Thread: While Loop
Post: While Loop
Hi there,
I have three different csv-files (chicago.csv, new_yourk.csv and washington.csv) I want to write a code where I will ask a user to choose one of the city from this files:
This is ma code:... |
|
Jack_Sparrow |
Data Science |
3 |
3,588 |
May-12-2018, 10:50 AM |
|
|
Thread: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \
Post: RE: (unicode error) 'unicodeescape' codec can't de...
Yes, you're right! there is smth wrong with the path. I'll take a closer look at it. |
|
Jack_Sparrow |
Data Science |
8 |
128,349 |
May-11-2018, 12:54 PM |