Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools

Python Examples

django authenticate

May 16, 2022 by Anurag batra
django authenticate 1

from django.contrib.auth import authenticate Here is what the above code is Doing: 1. We’re creating a new view called login. …

Read more

update my anaconda

May 16, 2022 by Anurag batra
update my anaconda 2

conda update –all Here is what the above code is Doing: 1. Creating a new environment called ‘myenv’ 2. Installing …

Read more

python re.search()

May 16, 2022 by Anurag batra
python re.search() 3

## Search for pattern ‘bb’ in string ‘aabbcc’. ## All of the pattern must match, but it may appear anywhere. …

Read more

model.predict([x_test]) error

May 16, 2022 by Anurag batra
model.predict([x_test]) error 4

Just put model.predict(x_test) instead of model.predict([x_test]) Here is what the above code is Doing: 1. It’s creating a model using …

Read more

how to read csv file online into pandas

May 16, 2022 by Anurag batra
how to read csv file online into pandas 5

you should be in the same dir as .py file df = pd.read_csv(‘your_file_name.csv’) Here is what the above code is …

Read more

random matrix python

May 16, 2022 by Anurag batra
random matrix python 6

np.random.rand(3,2) Here is what the above code is Doing: 1. We’re creating a 3×2 matrix of random numbers. 2. We’re …

Read more

how to delete a turtle in python

May 16, 2022 by Anurag batra
how to delete a turtle in python 7

t = turtle.Turtle() t.ht() # ht() = hideturtle() Here is what the above code is Doing: 1. Importing the turtle …

Read more

django flush database

May 16, 2022 by Anurag batra
django flush database 8

python manage.py flush  

how to connect templates in django

May 16, 2022 by Anurag batra
how to connect templates in django 9

# Template directory setting TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), ‘templates’), ) Here is what the above code is Doing: 1. Importing …

Read more

Post navigation
Older posts
Page1 Page2 … Page124 Next →
© MyEduKit - 2022 . All Rights Reserved.