Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: HttpRequest vs HttpResponse in Django
Post: HttpRequest vs HttpResponse in Django
Httprequest.method attribute exists in Django but i do not know about HttpResponse.method attribute is exists or not ? |
|
ift38375 |
Web Scraping & Web Development |
2 |
2,093 |
Dec-10-2019, 01:29 AM |
|
|
Thread: Why use HTML in Django Template
Post: Why use HTML in Django Template
I am confuse in usage of HTML(.html) in Django templates,
why we can not use .py (python) in Django templates ? |
|
ift38375 |
Web Scraping & Web Development |
2 |
2,830 |
Dec-09-2019, 01:25 AM |
|
|
Thread: IndentationError: unexpected indent in views.py
Post: IndentationError: unexpected indent in views.py
Sir,
I am trying to create project in Django using GET and POST request mechanism
but Views.py file giving some error in line 25 so please help me out to resolve this error ...
from django.http impor... |
|
ift38375 |
Web Scraping & Web Development |
1 |
2,543 |
Dec-08-2019, 12:45 PM |
|
|
Thread: Print name N times using recursion
Post: RE: Print name N times using recursion
(Oct-23-2019, 01:35 PM)ichabod801 Wrote: You need to get rid of the loop, just print one time per function call. Then you need a terminating condition that stops the recursion. You would typically p... |
|
ift38375 |
Homework |
7 |
7,953 |
Oct-23-2019, 02:24 PM |
|
|
Thread: Print name N times using recursion
Post: Print name N times using recursion
How can i write program to Print "Hello" 5 times using recursion.
I am trying code below but it is not working.
def fnc():
for i in range(5):
print("Hello")
fnc()
fnc() |
|
ift38375 |
Homework |
7 |
7,953 |
Oct-23-2019, 05:11 AM |
|
|
Thread: Add two number and variable datatype is int8
Post: RE: Add two number and variable datatype is int8
(Aug-05-2019, 01:35 AM)scidam Wrote: Is it allowed for you to use NumPy? Numpy has int8 data type.
how can we do it without numpy ? |
|
ift38375 |
General Coding Help |
3 |
2,932 |
Aug-05-2019, 03:39 AM |
|
|
Thread: Add two number and variable datatype is int8
Post: Add two number and variable datatype is int8
Hi,
Write a simple python program to add two numbers and variables datatype should be int8.
How can I do this ?
Actually by default variables take only 'int' here I am confused.and after getting yo... |
|
ift38375 |
General Coding Help |
3 |
2,932 |
Aug-04-2019, 10:54 PM |
|
|
Thread: Create dataframe through Dictionary in pandas
Post: Create dataframe through Dictionary in pandas
Hi,
I have given below table and i want to create dataframe of this table using Dictionary:
2019 2017 2015 2013 2011
qtr1 61000 44900 5000 5... |
|
ift38375 |
Data Science |
2 |
2,249 |
Aug-03-2019, 08:24 AM |
|
|
Thread: Confusion in exact term used for ?
Post: Confusion in exact term used for ?
import pandas as pd
diSales= { 2016:{'qtr1':34500,'qtr2':56000,'qtr3':47000,'qtr4':49000},
2017:{'qtr1':44900,'qtr2':46100,'qtr3':57000,'qtr4':59000},
2018:{'qtr1':54500,'qtr2':5... |
|
ift38375 |
General Coding Help |
2 |
2,571 |
Jul-22-2019, 07:54 AM |
|
|
Thread: dtype in not working in mad() function
Post: RE: dtype in not working in mad() function
(Jul-21-2019, 11:05 PM)scidam Wrote: (Jul-21-2019, 04:28 AM)ift38375 Wrote: df = pd.DataFrame(diSales, dtype=pd.Int32Dtype()).why ? What is use of this line ?This is about new Pandas feature, see ... |
|
ift38375 |
Data Science |
8 |
3,994 |
Jul-22-2019, 12:44 AM |
|
|
Thread: dtype in not working in mad() function
Post: RE: dtype in not working in mad() function
(Jul-20-2019, 08:48 AM)scidam Wrote: Ability to use NaN values with columns of integer type is latest pandas feature (and still experimental).
As of Pandas 0.24.x you can do this, e.g.
import pand... |
|
ift38375 |
Data Science |
8 |
3,994 |
Jul-21-2019, 04:28 AM |
|
|
Thread: dtype in not working in mad() function
Post: RE: dtype in not working in mad() function
(Jul-20-2019, 08:48 AM)scidam Wrote: Ability to use NaN values with columns of integer type is latest pandas feature (and still experimental).
As of Pandas 0.24.x you can do this, e.g.
import pand... |
|
ift38375 |
Data Science |
8 |
3,994 |
Jul-21-2019, 12:57 AM |
|
|
Thread: dtype in not working in mad() function
Post: dtype in not working in mad() function
Given below is python pandas program using mad()function :
import pandas as pd
import numpy as np
diSales= { 2016:{'qtr1':34500,'qtr2':56000,'qtr3':47000,'qtr4':49000},
2017:{'qtr1':44900,'... |
|
ift38375 |
Data Science |
8 |
3,994 |
Jul-20-2019, 07:48 AM |
|
|
Thread: tell exact difference between xlim() and xticks() function
Post: RE: tell exact difference between xlim() and xtick...
(Jul-11-2019, 02:10 AM)scidam Wrote: They are different. The first (plt.xlim()) returns range for x-axis values of the current axes-instance,
the second returns array of xtick labels (where labels ... |
|
ift38375 |
Data Science |
3 |
5,277 |
Jul-11-2019, 03:27 PM |
|
|
Thread: tell exact difference between xlim() and xticks() function
Post: tell exact difference between xlim() and xticks() ...
I am confused in xlim() and xticks() function of Matplotlib.pyplot.
are both same or different ? Please explain with simple graph example.. |
|
ift38375 |
Data Science |
3 |
5,277 |
Jul-11-2019, 01:11 AM |
|
|
Thread: Histogram using pandas dataframe not showing proper output
Post: Histogram using pandas dataframe not showing prope...
I am doing coding in script mode :
import pandas as pd
ontutD = {'Tutor': ['Tahira','Gagan','Anusha','Jacob','venkat',
'Tahira','Gagan','Anusha','Jacob','venkat',
... |
|
ift38375 |
Homework |
1 |
2,190 |
Jul-04-2019, 04:54 PM |
|
|
Thread: How Quantile calculate
Post: RE: How Quantile calculate
(Jul-04-2019, 05:13 AM)ThomasL Wrote: pandas.DataFrame.quantile
https://en.wikipedia.org/wiki/Quantile
anybody can explain how we can calculate first quartile value of column "2016" for row "0.25" a... |
|
ift38375 |
Data Science |
2 |
2,901 |
Jul-04-2019, 07:17 AM |
|
|
Thread: How Quantile calculate
Post: How Quantile calculate
Given below is source code for Pandas dataframe :
import pandas as pd
diSales= { 2016:{'qtr1':34500,'qtr2':56000,'qtr3':47000,'qtr4':49000},
2017:{'qtr1':44900,'qtr2':46100,'qtr3':57000,'q... |
|
ift38375 |
Data Science |
2 |
2,901 |
Jul-04-2019, 01:14 AM |
|
|
Thread: How matplotlib automatically set x-axis and y-axis limits for bar graph ?
Post: RE: How matplotlib automatically set x-axis and y-...
(Jul-03-2019, 11:37 AM)scidam Wrote: If you look at plt.bar function docs, you find keyword bottom; its default value 0, that means all bars will start at 0 and have
height as defined in the second ... |
|
ift38375 |
Data Science |
3 |
5,553 |
Jul-03-2019, 02:26 PM |
|
|
Thread: How matplotlib automatically set x-axis and y-axis limits for bar graph ?
Post: How matplotlib automatically set x-axis and y-axis...
Hi,
I am confused in math/logic behind automatically by-default setting of x-axis and y-axis limits in bar graph ? Here i am sharing some examples
1.
import matplotlib.pyplot as plt
x = [1,2,3,4,5]... |
|
ift38375 |
Data Science |
3 |
5,553 |
Jul-03-2019, 11:08 AM |