-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50c1845
commit 5071ed2
Showing
5 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Συναίσθημα σε σχέση με το χρόνο | ||
|
||
Για να δούμε πώς διακυμαίνεται το συναίσθημα σε σχέση με το χρόνο πρέπει να | ||
υπολογίσουμε το μέσο συναίσθημα κάθε ημέρας. | ||
|
||
Ανοίγουμε το αρχείο `final_tweets.csv` στο Calc και για κάθε χρήστη εισάγουμε | ||
μια νέα στήλη στα δεξιά στην οποία θα βάλουμε το μέσο όρο ανά tweet της ημέρας, | ||
διαιρώντας το αθροιστικό συναίσθημα της ημέρας με τον αριθμό των tweets αυτής | ||
της ημέρας. Επειδή κάποιες μέρες δεν υπάρχουν tweets πρέπει να αποφύγουμε τη | ||
διαίρεση με το μηδέν με μια απλή συνάρτηση `IF`. | ||
|
||
Για παράδειγμα, το σύνολο των tweets κάθε ημέρας του Αδώνιδος Γεωργιάδη | ||
βρίσκονται στη στήλη `B` ενώ το αθροιστικό συναίσθημα αυτής της ημέρας βρίσκεται | ||
στη στήλη `E`. Οπότε εισάγουμε μια νέα στήλη `F` δεξιότερα και στο πρώτο κελί | ||
`F2` βάζουμε τον τύπο: | ||
|
||
``` | ||
=IF(B2;E2/B2;0) | ||
``` | ||
|
||
και αναπαράγουμε τον τύπο μέχρι την τελευταία γραμμή. | ||
|
||
Κάνουμε το ίδιο για τους υπόλοιπους χρήστες. | ||
|
||
Στη συνέχεια δημιουργούμε ένα διάγραμμα με τρεις σειρές δεδομένων, μία για κάθε | ||
χρήστη χρησιμοποιώντας τα περιεχόμενα των κελιών με το μέσο συναίσθημα, ενώ ως | ||
περιοχή ετικετών βάζουμε τη στήλη `A` με τις ημερομηνίες. | ||
|
||
Το αποτέλεσμα είναι το ακόλουθο: | ||
|
||
![στιγμιότυπο οθόνης από το Calc](Μέσο συναίσθημα ανά ημέρα.png) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters