Git Product home page Git Product logo

aftapark's Introduction

Aftapark

Проект для хакатона от VK&HSE

Installing:

git clone http://github.com/NikitaKolotushkin/AfTaPark.git

cd AfTaPark

python3 -m pip install virtualenv

virtualenv venv

source venv/bin/activate

pip install -r requirements.txt

Examples:

Зависимость кол-ва запросов от возраста Зависимость кол-ва запросов от возраста Зависимость кол-ва пользователей от региона

import pandas as pd
import matplotlib.pyplot as plt

parquet_data = pd.read_parquet("C:\Alex\hachoton\part_2.parquet")
parquet_data.to_csv()

df2 = pd.read_csv("C:\Alex\hachoton\geo_dataframe.csv")

merged_df = pd.merge(parquet_data, df2, on='geo_id')
merged_df.to_csv('merged_file.csv', index=False)

region_counts = merged_df['region_id'].value_counts()

plt.figure(figsize=(10, 6))
plt.bar(region_counts.index, region_counts.values)
plt.xlabel('Region')
plt.ylabel('Number of Users')
plt.title('Distribution of Users by Region')
plt.xticks(rotation=45)
plt.show()

Пример кода отрисовки гистограммы на основе полученных статистических данных

aftapark's People

Contributors

nikitakolotushkin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.