日本語

Course Code etc
Academic Year 2026
College College of Sociology
Course Code DK041
Theme・Subtitle Pythonで学ぶ数値とテキスト分析
Class Format Face to face (all classes are face-to-face)
Class Format (Supplementary Items)
Campus Seminar
Campus Ikebukuro
Semester Fall semester
DayPeriod・Room Wed.1
ログインして教室を表示する(Log in to view the classrooms.)
Credits 2
Course Number SOX1620
Language Japanese
Class Registration Method Automatic Registration
Assigned Year 配当年次は開講学部のR Guideに掲載している科目表で確認してください。
Prerequisite Regulations
Acceptance of Other Colleges 履修登録システムの『他学部・他研究科履修不許可科目一覧』で確認してください。
Course Cancellation ×(履修中止不可/ Not eligible for cancellation)
Online Classes Subject to 60-Credit Upper Limit
Relationship with Degree Policy 各授業科目は、学部・研究科の定める学位授与方針(DP)や教育課程編成の方針(CP)に基づき、カリキュラム上に配置されています。詳細はカリキュラム・マップで確認することができます。
https://www.rikkyo.ac.jp/about/disclosure/educational_policy/sociology.html
Notes ソーシャルデータサイエンスコース科目.

【Course Objectives】

In this course, the goal is to acquire fundamental techniques for analyzing data using the programming language “Python.” Specifically, the course aims to achieve the following four objectives.

Programming: Understand basic concepts such as variables, conditional branching, and iterative processing, and acquire the skills to make a computer execute intended operations.

Numerical data analysis skills: Learn methods for reading tabular data handled in tools such as Excel into programs, performing data cleaning and aggregation, and visualizing the results in graphs.

Text data analysis skills: Learn techniques for quantitatively handling “language” data such as free-text responses and spoken statements, and develop the ability to analyze word frequencies and relationships.

Data-driven insight: Become capable of practicing the entire process of removing noise from raw data and deriving insights using appropriate analytical methods.

【Course Contents】

Today, a wide variety of data exists in society, including survey responses, online reviews, and digitized book information stored in databases.
In this course, hands-on exercises using Python are conducted for beginner programmers in order to make effective use of such data.
By learning methods commonly used in data science, students develop fundamental skills for interpreting information from multiple perspectives through the aggregation of numerical data and the visualization of text data.

Japanese Items

【授業計画 / Course Schedule】

1 【第1部:Python基礎】
ガイダンスと環境構築
2 データの格納と計算
キーワード:変数、データ型(数値・文字列)、四則演算
3 データの集合
キーワード:リスト、辞書
4 条件分岐と反復
キーワード:if、for
5 【第2部:数値データ】
表形式データの読み込み
キーワード:pandas
6 データの抽出と整理
キーワード:フィルタリング
7 データの加工・クリーニング
キーワード:欠損値の処理、データ型の変換、表記ゆれの修正
8 集計
キーワード:記述統計
9 データの可視化
キーワード:棒グラフ、折れ線グラフ、ヒストグラム、散布図
10 【第3部:自然言語処理】
文字列操作と正規表現
キーワード:不要な記号の削除、全角・半角の統一
11 形態素解析
キーワード:MeCab
12 単語の集計とランキング
キーワード:ストップワード
13 テキストの全体像
キーワード:WordCloud
14 単語の関係性を見る
キーワード:共起

【活用される授業方法 / Teaching Methods Used】

板書 /Writing on the Board
スライド(パワーポイント等)の使用 /Slides (PowerPoint, etc.)
上記以外の視聴覚教材の使用 /Audiovisual Materials Other than Those Listed Above
個人発表 /Individual Presentations
グループ発表 /Group Presentations
ディスカッション・ディベート /Discussion/Debate
実技・実習・実験 /Practicum/Experiments/Practical Training
学内の教室外施設の利用 /Use of On-Campus Facilities Outside the Classroom
校外実習・フィールドワーク /Field Work
上記いずれも用いない予定 /None of the above

【授業時間外(予習・復習等)の学修 / Study Required Outside of Class】

プログラミングの習得には、実際に手を動かす時間が不可欠です。
復習では、授業で扱ったコードを自力で再現できるようになるまで繰り返し練習してください。
また、自身の関心に応じてコードを書き換えたり、別のデータを分析するなど、自分なりにアレンジを加えることで応用力を高めることを推奨します。

【成績評価方法・基準 / Evaluation】

種類 (Kind)割合 (%)基準 (Criteria)
平常点 (In-class Points)100 各授業で提示する課題(60%)
レポート(40%)
備考 (Notes)

【テキスト / Textbooks】

なし/None

【参考文献 / Readings】

【履修にあたって求められる能力 / Abilities Required to Take the Course】

プログラミング未経験者を対象とするため、プログラミング経験は問いませんが、新しい知識・スキルを習得しようとする意欲・積極性が求められます。

【学生が準備すべき機器等 / Equipment, etc., that Students Should Prepare】

PC室の環境によっては下記の機器が必要になる可能性があります。
・PC
・Pythonの実行環境を持っていない学生は、Google Colaboratoryを利用する可能性があるため、Googleアカウントを取得してください

【その他 / Others】

【注意事項 / Notice】