What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-22 14:45:05
display data from database in django
data = Students.objects.all() stu = { "student_number": data } return render_to_response("login/profile.html", stu) // in html file : {% for student in student_number %} {{ student.f_name}} {{ student.l_name }} {{ stud... Add solution -
Python 2021-10-19 17:53:12
normalize a group in countplot
import numpy as np import pandas as pd import seaborn as sns sns.set(color_codes=True) df = sns.load_dataset('titanic') df.head() x,y = 'class', 'survived' (df .groupby(x)[y] .value_counts(normalize=True) .mul(100) .rename('percent') .reset_index() .pi... Add solution -
Python 2021-10-19 04:18:04
python rename file
import os os.rename('guru99.txt','career.guru99.txt') Add solution -
C# 2021-10-17 09:48:05
c# enum variable set to nonthing
An enum is a "value" type in C# (means the the enum is stored as whatever value it is, not as a reference to a place in memory where the value itself is stored). You can't set value types to null (since null is used for reference types only). T... Add solution -
Other 2021-10-17 02:26:03
type in robotframework
${type string}= Evaluate type($variable).__name__ Add solution -
Python 2021-10-16 13:44:06
python increment filename by 1
import glob import re import os def main(): # We want all files that are S00E0x for name in glob.glob('./*S0*'): # We want to find in the filename 'Exx' and increase xx by 1 new_name = re.sub('(E)([0-9]{2})', increment, name) os.rename(... Add solution -
Shell/Bash 2021-10-15 01:04:04
search all folders for file match linux
find . -name "foo*" Add solution
Best helpers
Ranking is empty