EgyTech FYI Python Wrapper
  • Introduction
  • Quick Start
  • Reference
    • API Reference
      • Participants
      • Stats
      • PoolingClient
      • ParticipantsQueryParams
      • StatsQueryParams
    • Examples
      • Using The Pooling Client
Powered by GitBook
On this page
  • egytech_api.core.Participants(egytech_api.models.ParticipantsQueryParams)
  • Attributes
  • Methods
  • get_df()
  • save_csv(filename: str)
  • save_excel(filename: str)
  1. Reference
  2. API Reference

Participants

The participants object used for fetching information about individual survey user data. It automatically creates a Pandas DataFrame in the background of the process.

PreviousAPI ReferenceNextStats

Last updated 11 months ago

egytech_api.core.Participants()

Attributes

Name
Type
Description
Allowed Values

title [Optional]

string

The job title of requested participants.

['ai_automation',

'backend',

'crm',

'data_analytics',

'data_engineer',

'data_scientist',

'devops_sre_platform',

'embedded',

'engineering_manager',

'executive',

'frontend',

'fullstack',

'hardware',

'mobile',

'product_manager',

'product_owner',

'research',

'scrum', 'security',

'system_arch',

'technical_support',

'testing',

'ui_ux']

level [Optional]

string

The career level of requested participants.

['c_level',

'director',

'group_product_manager',

'intern',

'junior', 'manager',

'mid_level',

'principal',

'senior',

'senior_manager',

'senior_principal',

'senior_staff',

'staff',

'team_lead',

'vp']

min_yoe [Optional]

integer

The minimum years of experience for participants to be included in the query results.

Integer between 0 and 20

max_yoe [Optional]

integer

The maximum years of experience for participants to be included in the query results.

Integer between 1 and 26.

gender [Optional]

string

The gender of participants included in the query results.

['male',

'female']

cs_degree [Optional]

boolean

Whether the included participants have a computer science degree or not.

True, False

business_market [Optional]

string

The market scope of the included participants' companies.

['global',

'regional',

'local']

business_size [Optional]

string

The size of the included participants' companies.

['large',

'medium',

'small']

business_focus [Optional]

string

The primary business focus of the included participants' companies.

['product',

'software_house']

business_line [Optional]

string

The business line the participants' companies operate in.

['b2b',

'b2c',

'both']

include_relocated [Optional]

boolean

Include participants who have relocated.

True, False

include_remote [Optional]

boolean

Include participants who work remotely for companies abroad.

True, False

Note: Attribute ordering on instance creation doesn't matter. Although not recommended, a dictionary can also be used instead of attributes to create a instance.

Note: The supported values for query parameters in the API call differ with cs_degree vs include_relocated and include_remote. Allowed user inputs are boolean, as all of them have 2 possible values. At pydantic model serialization level (the step that produces the dictionary to-be-used for the API call query parameters), this is fixed and only egytech fyi api-supported values are used.

Methods

get_df()

Parameters

No parameters

Returns

Type
Description

save_csv(filename: str)

Parameters

Name
Type
Description
Example

filename

str

The name of the .csv file to dump the fetched data in (without extension). No extension is needed explicitly as it's added during the file-saving process.

"my_awesome_data"

Returns

None

save_excel(filename: str)

Parameters

Name
Type
Description
Example

filename

str

The name of the .xlsx file to dump the fetched data in (without extension). No extension is needed explicitly as it's added during the file-saving process.

"my_awesome_data"

Returns

None

Returns a instance of the fetched data.

A instance containing the fetched data as one row per fetched participant survey.

This method is simply a placeholder for the method. It simply saves the generated instance to a .csv file and excludes the index. You can customize your own function parameters for this by simply calling the method, and manipulating the resulting as you want.

This method is simply a placeholder for the method. It simply saves the generated instance to a .xlsx file and excludes the index. You can customize your own function parameters for this by simply calling the method, and manipulating the resulting as you want.

This function uses "xlsxwriter" as the excel writer engine by default. Customization is available by calling on a instead.

egytech_api.models.ParticipantsQueryParams
Participants
pandas.DataFrame
pandas.DataFrame.to_csv()
pandas.DataFrame
get_df()
pandas.DataFrame
pandas.DataFrame.to_excel()
pandas.DataFrame
get_df()
pandas.DataFrame
to_excel()
pandas.DataFrame
pandas.DataFrame
pandas.DataFrame