This document discusses various string methods in Python including capitalize(), lower(), upper(), find(), split(), join(), lstrip(), rstrip(), and strip(). It provides examples of how to use each method on a string and describes what each method does. For example, capitalize() converts the first character to upper case, find() returns the index of the first matched character, and split() returns a list of substrings split on a specified separator.
The document provides information about the sqlite3 command-line interface tool and its commands. It summarizes that sqlite3 allows users to interactively issue SQL commands and see results, lists some common dot-commands like .tables to display table names and .schema to display the SQL schema, and outlines the main SQL commands supported by SQLite like CREATE TABLE, SELECT, INSERT and DELETE.
This document discusses using Python and SQLite3 to interact with a SQLite database. It shows how to connect to a database using sqlite3.connect(), get a cursor object using conn.cursor(), execute SQL statements like CREATE TABLE and INSERT using the cursor's execute method, and retrieve data using fetch methods. The goal is to demonstrate basic SQLite database operations in Python like creating tables, inserting data, and querying data.
Предсказание оттока игроков из World of TanksYandex
Одна из наиболее часто возникающих задач в бизнес-аналитике для компаний — это предсказание оттока клиентов. Ведь если заранее знать, что клиент собирается уйти к конкуренту, его можно попытаться остановить. Задача будет рассмотрена на примере прогнозирования оттока игроков из World of Tanks.
This document discusses regular expressions (re) in Python. It provides examples of common regex patterns like \d, \s, ., *, +, ?, etc. It also demonstrates how to compile patterns, perform matches, searches, and find all occurrences using functions like re.compile(), re.match(), re.search(), and re.findall(). The document ends by asking if there are any questions.
The document discusses various methods for dictionaries in Python including:
- dict() to create an empty dictionary or initialize with key-value pairs
- clear() to remove all items from a dictionary
- copy() to make a shallow copy of a dictionary
- get() to return a value for a given key or a default if the key does not exist
- has_key() to check if a dictionary contains a given key
- items() to return a list of all key-value pairs as tuples
- iteritems() to iterate over key-value pairs
This document discusses the File class in Java and methods for working with files and directories. It describes the File class's constructors and methods for getting file attributes, checking permissions, renaming, deleting and creating files/directories. It also introduces the FileFilter and FilenameFilter interfaces for filtering files, and provides examples of their use. Finally, it discusses working with dates using the Date and GregorianCalendar classes.
This document discusses Java classes for working with archives and compression. It describes GZIPInputStream and GZIPOutputStream for reading and writing gzip-compressed streams. ZipInputStream, ZipOutputStream, and ZipEntry are covered for reading, writing, and working with entries in zip archives. Examples are provided for compressing/decompressing files using gzip and creating/reading zip archives.
The document discusses input/output streams in Java. It describes common stream classes like FileInputStream, FileOutputStream, BufferedInputStream, BufferedOutputStream, InputStreamReader, OutputStreamWriter, FileReader, FileWriter, BufferedReader and BufferedWriter. It provides examples of reading/writing data to files using methods like read(), write(), readLine() on these classes.
This document discusses various string methods in Python including capitalize(), lower(), upper(), find(), split(), join(), lstrip(), rstrip(), and strip(). It provides examples of how to use each method on a string and describes what each method does. For example, capitalize() converts the first character to upper case, find() returns the index of the first matched character, and split() returns a list of substrings split on a specified separator.
The document provides information about the sqlite3 command-line interface tool and its commands. It summarizes that sqlite3 allows users to interactively issue SQL commands and see results, lists some common dot-commands like .tables to display table names and .schema to display the SQL schema, and outlines the main SQL commands supported by SQLite like CREATE TABLE, SELECT, INSERT and DELETE.
This document discusses using Python and SQLite3 to interact with a SQLite database. It shows how to connect to a database using sqlite3.connect(), get a cursor object using conn.cursor(), execute SQL statements like CREATE TABLE and INSERT using the cursor's execute method, and retrieve data using fetch methods. The goal is to demonstrate basic SQLite database operations in Python like creating tables, inserting data, and querying data.
Предсказание оттока игроков из World of TanksYandex
Одна из наиболее часто возникающих задач в бизнес-аналитике для компаний — это предсказание оттока клиентов. Ведь если заранее знать, что клиент собирается уйти к конкуренту, его можно попытаться остановить. Задача будет рассмотрена на примере прогнозирования оттока игроков из World of Tanks.
This document discusses regular expressions (re) in Python. It provides examples of common regex patterns like \d, \s, ., *, +, ?, etc. It also demonstrates how to compile patterns, perform matches, searches, and find all occurrences using functions like re.compile(), re.match(), re.search(), and re.findall(). The document ends by asking if there are any questions.
The document discusses various methods for dictionaries in Python including:
- dict() to create an empty dictionary or initialize with key-value pairs
- clear() to remove all items from a dictionary
- copy() to make a shallow copy of a dictionary
- get() to return a value for a given key or a default if the key does not exist
- has_key() to check if a dictionary contains a given key
- items() to return a list of all key-value pairs as tuples
- iteritems() to iterate over key-value pairs
This document discusses the File class in Java and methods for working with files and directories. It describes the File class's constructors and methods for getting file attributes, checking permissions, renaming, deleting and creating files/directories. It also introduces the FileFilter and FilenameFilter interfaces for filtering files, and provides examples of their use. Finally, it discusses working with dates using the Date and GregorianCalendar classes.
This document discusses Java classes for working with archives and compression. It describes GZIPInputStream and GZIPOutputStream for reading and writing gzip-compressed streams. ZipInputStream, ZipOutputStream, and ZipEntry are covered for reading, writing, and working with entries in zip archives. Examples are provided for compressing/decompressing files using gzip and creating/reading zip archives.
The document discusses input/output streams in Java. It describes common stream classes like FileInputStream, FileOutputStream, BufferedInputStream, BufferedOutputStream, InputStreamReader, OutputStreamWriter, FileReader, FileWriter, BufferedReader and BufferedWriter. It provides examples of reading/writing data to files using methods like read(), write(), readLine() on these classes.