Python Forum
[split] Tutorial Requests - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: [split] Tutorial Requests (/thread-26005.html)



[split] Tutorial Requests - ravulaajith - Apr-18-2020

Hi I am new to python programming. I have to submit an assignment to be submitted. I am trying for the coding part for the past one week. I am not at all getting the exact code. If any one could help with the writing the code for my assignment please.


RE: [split] Tutorial Requests - buran - Apr-18-2020

Welcome to the forum.
Take time to read forum rules, especially the part related to homework questions.
Post your assignment. Post your code in python tags, any traceback you get, in full - in error tags. Ask specific questions.


RE: [split] Tutorial Requests - Yoriz - Apr-18-2020

Based on the information given this will give the exact code
print('the exact code')
Output:
the exact code



RE: [split] Tutorial Requests - Gaurav_Bhatt - Apr-19-2020

Hi ravulaajith,

Welcome to Forum.

Let us know the details about your assignment. We can help you out with language, syntax and logic if required.

[Warning - If its school homework, i suggest you post the code that you have tried. By showing us what you have tried builds confidence that you aren't cheating with school homework]


RE: [split] Tutorial Requests - pyzyx3qwerty - Apr-20-2020

Can you show what have you tried, so we can know where you have gone wrong, and help you with it?


RE: [split] Tutorial Requests - ravulaajith - May-29-2020

could anyone help to create a dynamic scatter plot using plotly express. I have a dataframe similar to this. I want the years = 1990, 1991, 1992, 1993, 1994 to be on x-axis and the corresponding data to be on y-axis and Name column values to be animated.

Name 1990 1991 1992 1993 1994
0 A 10 2 15 20 18
1 B 13 14 18 11 17
2 C 12 17 8 10 13
3 D 9 15 16 6 9
4 E 19 18 13 17 19


RE: [split] Tutorial Requests - buran - May-29-2020

again, what have you tried?


RE: [split] Tutorial Requests - ravulaajith - May-29-2020

px.scatter(x = dfv.columns, y = dfv.sum(), size = "pop", size_max = 60, color = "Industry", hover_name = "Industry", animation_frame = "year", animation_group = "Industry", log_x = True, range_x = [2009,2018], range_y = [25000, 400000]).
This code pertains to my dataframe. I am getting the following error.
TypeError: scatter() missing 1 required positional argument: 'data_frame'


RE: [split] Tutorial Requests - buran - May-29-2020

Mate, please, start following rules if you want help.
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.

also post minimal reproducible example. we are not going to recreate the dataframe, imports, etc. in order to run your code